Fixed POV-Ray export file browser to accept new files.

This commit is contained in:
leo 2015-04-06 23:23:24 +00:00
parent 3081ed2df8
commit c0167e2dd0
3 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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:

View file

@ -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));