Commit ed879098 authored by David Hurka's avatar David Hurka 🐬
Browse files

Move “Advance automatically” checkbox to its spin box

parent 31ce72e9
Pipeline #47180 passed with stage
in 10 minutes and 40 seconds
......@@ -19,6 +19,7 @@
#include <QCheckBox>
#include <QComboBox>
#include <QFormLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QScreen>
......@@ -30,16 +31,21 @@ DlgPresentation::DlgPresentation(QWidget *parent)
QFormLayout *layout = new QFormLayout(this);
// BEGIN Navigation section
// Checkbox and spinbox: advance automatically, interval
// Spinbox with a checkbox attached to the left: advance automatically
QCheckBox *advanceAutomatically = new QCheckBox(this);
advanceAutomatically->setText(i18nc("@option:check Config dialog, presentation page", "Advance automatically"));
advanceAutomatically->setText(QString());
advanceAutomatically->setObjectName(QStringLiteral("kcfg_SlidesAdvance"));
layout->addRow(QString(), advanceAutomatically);
KPluralHandlingSpinBox *advanceTime = new KPluralHandlingSpinBox(this);
advanceTime->setPrefix(i18nc("Spinbox prefix: Advance automatically: every n seconds", "every "));
advanceTime->setSuffix(ki18ncp("Advance every %1 seconds", " second", " seconds"));
advanceTime->setObjectName(QStringLiteral("kcfg_SlidesAdvanceTime"));
layout->addRow(i18nc("@label:spinbox Config dialog, presentation page", "Advance every:"), advanceTime);
QHBoxLayout *advanceAutomaticallyLayout = new QHBoxLayout(this);
advanceAutomaticallyLayout->addWidget(advanceAutomatically);
advanceAutomatically->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
advanceAutomaticallyLayout->addWidget(advanceTime);
layout->addRow(i18nc("@label:spinbox Config dialog, presentation page", "Advance automatically:"), advanceAutomaticallyLayout);
advanceAutomatically->setChecked(false);
advanceTime->setEnabled(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment