Changeset View
Changeset View
Standalone View
Standalone View
src/advanceconfig.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 39 | { | |||
---|---|---|---|---|---|
47 | connect(configUi->haltCommand, SIGNAL(textChanged(QString)), SIGNAL(changed())); | 47 | connect(configUi->haltCommand, SIGNAL(textChanged(QString)), SIGNAL(changed())); | ||
48 | connect(configUi->rebootCommand, SIGNAL(textChanged(QString)), SIGNAL(changed())); | 48 | connect(configUi->rebootCommand, SIGNAL(textChanged(QString)), SIGNAL(changed())); | ||
49 | connect(configUi->cursorList, SIGNAL(activated(int)), SIGNAL(changed())); | 49 | connect(configUi->cursorList, SIGNAL(activated(int)), SIGNAL(changed())); | ||
50 | connect(configUi->minimumUid, SIGNAL(textChanged(QString)), SIGNAL(changed())); | 50 | connect(configUi->minimumUid, SIGNAL(textChanged(QString)), SIGNAL(changed())); | ||
51 | connect(configUi->minimumUid, &QLineEdit::textChanged, this, &AdvanceConfig::slotUidRangeChanged); | 51 | connect(configUi->minimumUid, &QLineEdit::textChanged, this, &AdvanceConfig::slotUidRangeChanged); | ||
52 | connect(configUi->maximumUid, SIGNAL(textChanged(QString)), SIGNAL(changed())); | 52 | connect(configUi->maximumUid, SIGNAL(textChanged(QString)), SIGNAL(changed())); | ||
53 | connect(configUi->maximumUid, &QLineEdit::textChanged, this, &AdvanceConfig::slotUidRangeChanged); | 53 | connect(configUi->maximumUid, &QLineEdit::textChanged, this, &AdvanceConfig::slotUidRangeChanged); | ||
54 | 54 | | |||
55 | // manually emit changed signal since QGroupBox::clicked will pass false to changed() when unchecked | 55 | // manually emit changed signal since QCheckBox::clicked will pass false to changed() when unchecked | ||
56 | connect(configUi->autoLogin, &QGroupBox::clicked, this, [this] { emit changed(); }); | 56 | connect(configUi->autoLogin, &QCheckBox::clicked, this, [this] { emit changed(); }); | ||
57 | connect(configUi->reloginAfterQuit, &QAbstractButton::clicked, this, [this] { emit changed(); }); | 57 | connect(configUi->reloginAfterQuit, &QAbstractButton::clicked, this, [this] { emit changed(); }); | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | AdvanceConfig::~AdvanceConfig() | 60 | AdvanceConfig::~AdvanceConfig() | ||
61 | { | 61 | { | ||
62 | delete configUi; | 62 | delete configUi; | ||
63 | } | 63 | } | ||
64 | 64 | | |||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |