ui: Fixed exporting images from the graph resulted in too large images (issue #511)

* Fixed style issue in save dialog on Linux
* Fixed wrong dialog used on Mac and Windows
* Improved image quality

bug id = 511
This commit is contained in:
Eberhard Graether
2017-11-17 22:41:43 +01:00
parent b887a4a89e
commit 37b6453644
3 changed files with 14 additions and 5 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ QString QtFileDialog::getOpenFileName(QWidget* parent, const QString& caption, c
QString QtFileDialog::showSaveFileDialog(
QWidget *parent, const QString& title, const QString& directory, const QString& filter)
{
#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
return QFileDialog::getSaveFileName(parent, title, directory, filter);
@@ -92,7 +92,7 @@ QString QtFileDialog::showSaveFileDialog(
{
return QString();
}
#endif // Q_WS_MAC || Q_WS_WIN
#endif // Q_OS_MAC || Q_OS_WIN
}
QString QtFileDialog::getDir(QString dir)