Changeset View
Changeset View
Standalone View
Standalone View
kcmshell/main.cpp
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Line(s) | |||||
122 | { | 122 | { | ||
123 | setFaceType(dialogFace); | 123 | setFaceType(dialogFace); | ||
124 | setModal(false); | 124 | setModal(false); | ||
125 | 125 | | |||
126 | QDBusConnection::sessionBus().registerObject("/KCModule/dialog", this, QDBusConnection::ExportScriptableSlots); | 126 | QDBusConnection::sessionBus().registerObject("/KCModule/dialog", this, QDBusConnection::ExportScriptableSlots); | ||
127 | 127 | | |||
128 | connect(this, &KCMShellMultiDialog::currentPageChanged, | 128 | connect(this, &KCMShellMultiDialog::currentPageChanged, | ||
129 | this, [this](KPageWidgetItem *newPage,KPageWidgetItem *oldPage) { | 129 | this, [this](KPageWidgetItem *newPage,KPageWidgetItem *oldPage) { | ||
130 | KCModuleProxy *activeModule = qobject_cast<KCModuleProxy *>(newPage->widget()); | 130 | Q_UNUSED(oldPage); | ||
131 | KCModuleProxy *activeModule = newPage->widget()->findChild<KCModuleProxy *>(); | ||||
131 | if (activeModule) { | 132 | if (activeModule) { | ||
132 | KActivities::ResourceInstance::notifyAccessed(QUrl("kcm:" + activeModule->moduleInfo().service()->storageId()), | 133 | KActivities::ResourceInstance::notifyAccessed(QUrl("kcm:" + activeModule->moduleInfo().service()->storageId()), | ||
133 | "org.kde.systemsettings"); | 134 | "org.kde.systemsettings"); | ||
134 | } | 135 | } | ||
135 | }); | 136 | }); | ||
136 | } | 137 | } | ||
137 | 138 | | |||
138 | void KCMShellMultiDialog::activate(const QByteArray& asn_id) | 139 | void KCMShellMultiDialog::activate(const QByteArray& asn_id) | ||
▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines |