mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed POV-Ray export file browser to accept new files.
This commit is contained in:
parent
3081ed2df8
commit
c0167e2dd0
3 changed files with 3 additions and 3 deletions
|
@ -228,7 +228,7 @@ void TexFont::PrintText(float Left, float Top, float Z, const char* Text) const
|
|||
delete[] Verts;
|
||||
}
|
||||
|
||||
void TexFont::GetGlyphQuad(float Left, float Top, float Z, char Glyph, float* Buffer) const
|
||||
void TexFont::GetGlyphQuad(float Left, float Top, float Z, int Glyph, float* Buffer) const
|
||||
{
|
||||
Left -= mGlyphs[Glyph].width / 2.0f;
|
||||
Top += mFontHeight / 2.0f;
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
void Release();
|
||||
|
||||
void PrintText(float Left, float Top, float Z, const char* Text) const;
|
||||
void GetGlyphQuad(float Left, float Top, float Z, char Glyph, float* Buffer) const;
|
||||
void GetGlyphQuad(float Left, float Top, float Z, int Glyph, float* Buffer) const;
|
||||
void GetStringDimensions(int* cx, int* cy, const char* Text) const;
|
||||
|
||||
protected:
|
||||
|
|
|
@ -42,7 +42,7 @@ void lcQPOVRayDialog::accept()
|
|||
|
||||
void lcQPOVRayDialog::on_outputBrowse_clicked()
|
||||
{
|
||||
QString result = QFileDialog::getOpenFileName(this, tr("Save POV-Ray File"), ui->outputEdit->text(), tr("POV-Ray Files (*.pov);;All Files (*.*)"));
|
||||
QString result = QFileDialog::getSaveFileName(this, tr("Save POV-Ray File"), ui->outputEdit->text(), tr("POV-Ray Files (*.pov);;All Files (*.*)"));
|
||||
|
||||
if (!result.isEmpty())
|
||||
ui->outputEdit->setText(QDir::toNativeSeparators(result));
|
||||
|
|
Loading…
Reference in a new issue