Commit c8775cb1 authored by Harald Sitter's avatar Harald Sitter 🌼

connect groupbox toggles to change signal

the bridge, ppp, and gsm settings contain qgroupboxes which previously
were not tracked

e.g. the STP box toggle on bridges didn't enable the apply button

since checkable qgroupboxes are a fairly generic concept, let's connect a
generic watch rule

Test Plan: toggling STP in bridge settings actually enables apply button

Reviewers: jgrulich!

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent db951696
......@@ -26,6 +26,7 @@
#include <QComboBox>
#include <QCheckBox>
#include <QGroupBox>
#include <QLineEdit>
#include <QPushButton>
#include <QSpinBox>
......@@ -104,6 +105,12 @@ void SettingWidget::watchChangedSetting()
connect(tableview, &QTableView::clicked, this, &SettingWidget::settingChanged);
// Connect all QGroupBox widgets
QList<QGroupBox *> groupBoxes = findChildren<QGroupBox *>();
for (QGroupBox *box : groupBoxes) {
connect(box, &QGroupBox::toggled, this, &SettingWidget::settingChanged);
/********** OUR CUSTOM WIDGETS **********/
// Connect all PasswordField widgets
QList<PasswordField *> passwordfields = findChildren<PasswordField *>();
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