From 4397a6c06dd798e0f62148d488b14e89711448a6 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 2 May 2013 18:11:20 +0200 Subject: [PATCH] add operationEnabledChanged signal --- src/plasma/service.cpp | 1 + src/plasma/service.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/plasma/service.cpp b/src/plasma/service.cpp index a7b2e2806..c50a26f56 100644 --- a/src/plasma/service.cpp +++ b/src/plasma/service.cpp @@ -335,6 +335,7 @@ void Service::setOperationEnabled(const QString &operation, bool enable) } } } + emit operationEnabledChanged(operation, enable); } bool Service::isOperationEnabled(const QString &operation) const diff --git a/src/plasma/service.h b/src/plasma/service.h index 70e4e458b..8b5852d31 100644 --- a/src/plasma/service.h +++ b/src/plasma/service.h @@ -185,6 +185,11 @@ Q_SIGNALS: */ void serviceReady(Plasma::Service *service); + /** + * Emitted when an operation got enabled or disabled + */ + void operationEnabledChanged(const QString &operation, bool enabled); + protected: /** * Default constructor