From 6611d65d0fddf863cc99256ac31e25253149fdf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Fri, 26 Jul 2024 13:54:47 +0200 Subject: [PATCH] Update exportsvgdialog.cpp Minor UI. --- src/ui/dialogs/exportsvgdialog.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/ui/dialogs/exportsvgdialog.cpp b/src/ui/dialogs/exportsvgdialog.cpp index a1f1593fa..59307f945 100644 --- a/src/ui/dialogs/exportsvgdialog.cpp +++ b/src/ui/dialogs/exportsvgdialog.cpp @@ -39,6 +39,7 @@ #include #include #include +#include ExportSvgDialog::ExportSvgDialog(QWidget* const parent, const QString &warnings) @@ -90,7 +91,7 @@ ExportSvgDialog::ExportSvgDialog(QWidget* const parent, "loop", true).toBool()); - mOptimize = new QCheckBox(tr("Optimize"), this); + mOptimize = new QCheckBox(tr("Optimize for Web"), this); mOptimize->setChecked(AppSupport::getSettings("exportSVG", "optimize", false).toBool()); @@ -169,12 +170,19 @@ ExportSvgDialog::ExportSvgDialog(QWidget* const parent, mImageOptionsLayout->addWidget(mImageQuality); twoColLayout->addPair(mImageFormatLabel, mImageOptions); + const auto optsWidget = new QGroupBox(tr("Options"), this); + const auto optsLayout = new QVBoxLayout(optsWidget); + + optsWidget->setContentsMargins(0, 0, 0, 0); + + optsLayout->addWidget(mBackground); + optsLayout->addWidget(mFixedSize); + optsLayout->addWidget(mLoop); + optsLayout->addWidget(mOptimize); + // settings layout settingsLayout->addLayout(twoColLayout); - settingsLayout->addWidget(mBackground); - settingsLayout->addWidget(mFixedSize); - settingsLayout->addWidget(mLoop); - settingsLayout->addWidget(mOptimize); + settingsLayout->addWidget(optsWidget); settingsLayout->addStretch(); connect(mFirstFrame, qOverload(&QSpinBox::valueChanged),