Changeset View
Changeset View
Standalone View
Standalone View
kcms/runners/kcm.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 48 | { | |||
---|---|---|---|---|---|
68 | }); | 68 | }); | ||
69 | 69 | | |||
70 | headerLayout->addWidget(label); | 70 | headerLayout->addWidget(label); | ||
71 | headerLayout->addStretch(); | 71 | headerLayout->addStretch(); | ||
72 | headerLayout->addWidget(clearHistoryButton); | 72 | headerLayout->addWidget(clearHistoryButton); | ||
73 | 73 | | |||
74 | m_pluginSelector = new KPluginSelector(this); | 74 | m_pluginSelector = new KPluginSelector(this); | ||
75 | 75 | | |||
76 | //overload, can't use the new syntax | 76 | auto markAsChanged = [this] { | ||
77 | connect(m_pluginSelector, SIGNAL(changed(bool)), | 77 | emit changed(); | ||
78 | this, SIGNAL(changed(bool))); | 78 | }; | ||
79 | connect(m_pluginSelector, &KPluginSelector::changed, this, markAsChanged); | ||||
80 | connect(m_pluginSelector, &KPluginSelector::configCommitted, this, markAsChanged); | ||||
79 | 81 | | |||
80 | layout->addLayout(headerLayout); | 82 | layout->addLayout(headerLayout); | ||
81 | layout->addWidget(m_pluginSelector); | 83 | layout->addWidget(m_pluginSelector); | ||
82 | 84 | | |||
83 | Plasma::RunnerManager *manager = new Plasma::RunnerManager(this); | 85 | Plasma::RunnerManager *manager = new Plasma::RunnerManager(this); | ||
84 | manager->reloadConfiguration(); | 86 | manager->reloadConfiguration(); | ||
85 | } | 87 | } | ||
86 | 88 | | |||
Show All 22 Lines |