From 4f9f5d1cd1428593113adce70c9cd0d52791fbd2 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 30 Nov 2018 15:49:37 +1000 Subject: [PATCH] Unify appearance and behaviour of export settings dialogs --- src/app/layout/qgslayoutdesignerdialog.cpp | 4 +- src/ui/layout/qgslayoutimageexportoptions.ui | 72 ++++++++++---------- src/ui/layout/qgspdfexportoptions.ui | 4 +- src/ui/layout/qgssvgexportoptions.ui | 4 +- 4 files changed, 43 insertions(+), 41 deletions(-) diff --git a/src/app/layout/qgslayoutdesignerdialog.cpp b/src/app/layout/qgslayoutdesignerdialog.cpp index c5fc9f08534..2012b9abe28 100644 --- a/src/app/layout/qgslayoutdesignerdialog.cpp +++ b/src/app/layout/qgslayoutdesignerdialog.cpp @@ -3996,7 +3996,7 @@ bool QgsLayoutDesignerDialog::getSvgExportSettings( QgsLayoutExporter::SvgExport } // open options dialog - QDialog dialog; + QDialog dialog( this ); Ui::QgsSvgExportOptionsDialog options; options.setupUi( &dialog ); @@ -4066,7 +4066,7 @@ bool QgsLayoutDesignerDialog::getPdfExportSettings( QgsLayoutExporter::PdfExport } // open options dialog - QDialog dialog; + QDialog dialog( this ); Ui::QgsPdfExportOptionsDialog options; options.setupUi( &dialog ); diff --git a/src/ui/layout/qgslayoutimageexportoptions.ui b/src/ui/layout/qgslayoutimageexportoptions.ui index e0aed8cb3b2..9dc5e3b27fc 100644 --- a/src/ui/layout/qgslayoutimageexportoptions.ui +++ b/src/ui/layout/qgslayoutimageexportoptions.ui @@ -7,7 +7,7 @@ 0 0 533 - 394 + 424 @@ -15,18 +15,11 @@ - + Export Options - - - - Export resolution - - - @@ -50,6 +43,13 @@ + + + + Export resolution + + + @@ -114,6 +114,26 @@ + + + + If checked, a separate world file which georeferences exported images will be created + + + Generate world file + + + + + + + If unchecked, the generated images will not be antialiased + + + Enable antialiasing + + + @@ -143,7 +163,7 @@ - px + 1000 @@ -160,7 +180,7 @@ - px + 1000 @@ -179,7 +199,7 @@ - Top margin + Top margin (px) @@ -212,7 +232,7 @@ - px + 1000 @@ -222,7 +242,7 @@ - px + 1000 @@ -234,26 +254,6 @@ - - - - If checked, a separate world file which georeferences exported images will be created - - - Generate world file - - - - - - - If unchecked, the generated images will not be antialiased - - - Enable antialiasing - - - @@ -283,7 +283,7 @@ QgsCollapsibleGroupBoxBasic QGroupBox -
qgscollapsiblegroupbox.h
+
qgscollapsiblegroupbox.h
1
@@ -296,6 +296,8 @@ mResolutionSpinBox mWidthSpinBox mHeightSpinBox + mAntialiasingCheckBox + mGenerateWorldFile mClipToContentGroupBox mTopMarginSpinBox mLeftMarginSpinBox diff --git a/src/ui/layout/qgspdfexportoptions.ui b/src/ui/layout/qgspdfexportoptions.ui index 73f69df9c8c..26fe4b5362b 100644 --- a/src/ui/layout/qgspdfexportoptions.ui +++ b/src/ui/layout/qgspdfexportoptions.ui @@ -7,7 +7,7 @@ 0 0 489 - 190 + 197
@@ -17,7 +17,7 @@ - PDF Options + Export Options diff --git a/src/ui/layout/qgssvgexportoptions.ui b/src/ui/layout/qgssvgexportoptions.ui index 8ee4f5f4897..8695cd994d6 100644 --- a/src/ui/layout/qgssvgexportoptions.ui +++ b/src/ui/layout/qgssvgexportoptions.ui @@ -7,7 +7,7 @@ 0 0 489 - 351 + 385 @@ -17,7 +17,7 @@ - SVG Options + Export Options