Skip to content

Commit

Permalink
Update exportsvgdialog.cpp
Browse files Browse the repository at this point in the history
Minor UI.
  • Loading branch information
rodlie committed Jul 26, 2024
1 parent 9751d85 commit 6611d65
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/ui/dialogs/exportsvgdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <QPlainTextEdit>
#include <QProcess>
#include <QMessageBox>
#include <QGroupBox>

ExportSvgDialog::ExportSvgDialog(QWidget* const parent,
const QString &warnings)
Expand Down Expand Up @@ -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());
Expand Down Expand Up @@ -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<int>(&QSpinBox::valueChanged),
Expand Down

0 comments on commit 6611d65

Please sign in to comment.