diff --git a/src/advanceconfig.cpp b/src/advanceconfig.cpp --- a/src/advanceconfig.cpp +++ b/src/advanceconfig.cpp @@ -52,8 +52,8 @@ connect(configUi->maximumUid, SIGNAL(textChanged(QString)), SIGNAL(changed())); connect(configUi->maximumUid, &QLineEdit::textChanged, this, &AdvanceConfig::slotUidRangeChanged); - // manually emit changed signal since QGroupBox::clicked will pass false to changed() when unchecked - connect(configUi->autoLogin, &QGroupBox::clicked, this, [this] { emit changed(); }); + // manually emit changed signal since QCheckBox::clicked will pass false to changed() when unchecked + connect(configUi->autoLogin, &QCheckBox::clicked, this, [this] { emit changed(); }); connect(configUi->reloginAfterQuit, &QAbstractButton::clicked, this, [this] { emit changed(); }); } diff --git a/src/ui/advanceconfig.ui b/src/ui/advanceconfig.ui --- a/src/ui/advanceconfig.ui +++ b/src/ui/advanceconfig.ui @@ -6,183 +6,213 @@ 0 0 - 620 - 452 + 500 + 326 - - - General + + + QFormLayout::FieldsStayAtSizeHint - - - - - Cursor Theme: - - - - - - - - - - - - - Auto &Login - - - true - - - false - - - - QFormLayout::ExpandingFieldsGrow - - - - - User: - - - - - - - - - - Session: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - Relogin after quit - - - - - - - - - - - - - - 0 - 0 - - - - User - - - - - - Minimum UID: - - - - - - - - 0 - 0 - - - - 6 - - - - - - - Maximum UID: - - - - - - - - 0 - 0 - - - - 6 - - - - - - - - - - - 0 - 0 - - - - Commands - - - - - - Halt Command: - - - - - - - - - - Reboot Command: - - - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - + + Qt::AlignHCenter|Qt::AlignTop - + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + as user: + + + + + + + false + + + + + + + false + + + with session: + + + + + + + false + + + + + + + + + false + + + + 0 + 0 + + + + Log in again immediately after logging off + + + + + + + Minimum user UID: + + + + + + + + 0 + 0 + + + + 6 + + + + + + + Maximum user UID: + + + + + + + + 0 + 0 + + + + 6 + + + + + + + Halt command: + + + + + + + + 250 + 0 + + + + + + + + Reboot command: + + + + + + + + 250 + 0 + + + + + + + + Automatically log in: + + + + + + + + + + Cursor theme: + + + + + + + Qt::Vertical + + + + 8 + 8 + + + + + + + + Qt::Vertical + + + + 8 + 8 + + + + + + + + Qt::Vertical + + + + 8 + 8 + + + + + @@ -195,5 +225,70 @@ - + + + autoLogin + toggled(bool) + userList + setEnabled(bool) + + + 212 + 37 + + + 274 + 32 + + + + + autoLogin + toggled(bool) + label_4 + setEnabled(bool) + + + 207 + 22 + + + 363 + 37 + + + + + autoLogin + toggled(bool) + sessionList + setEnabled(bool) + + + 186 + 21 + + + 435 + 25 + + + + + autoLogin + toggled(bool) + reloginAfterQuit + setEnabled(bool) + + + 222 + 22 + + + 214 + 59 + + + +