From a265864a30df21a3fcb879526da20a2c22031e55 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 19 Nov 2012 13:30:51 +0100 Subject: [PATCH] note properties that are constant --- applet.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/applet.h b/applet.h index 803fd0a98..4891391cf 100644 --- a/applet.h +++ b/applet.h @@ -78,9 +78,9 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget { Q_OBJECT Q_PROPERTY(bool hasConfigurationInterface READ hasConfigurationInterface) - Q_PROPERTY(QString name READ name) - Q_PROPERTY(QString pluginName READ pluginName) - Q_PROPERTY(QString category READ category) + Q_PROPERTY(QString name READ name CONSTANT) + Q_PROPERTY(QString pluginName READ pluginName CONSTANT) + Q_PROPERTY(QString category READ category CONSTANT) Q_PROPERTY(ImmutabilityType immutability READ immutability WRITE setImmutability) Q_PROPERTY(bool hasFailedToLaunch READ hasFailedToLaunch WRITE setFailedToLaunch) Q_PROPERTY(bool isBusy READ isBusy WRITE setBusy) //KDE5: remove @@ -88,7 +88,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget Q_PROPERTY(bool configurationRequired READ configurationRequired WRITE setConfigurationRequired) Q_PROPERTY(QRectF geometry READ geometry WRITE setGeometry) Q_PROPERTY(bool shouldConserveResources READ shouldConserveResources) - Q_PROPERTY(uint id READ id) + Q_PROPERTY(uint id READ id CONSTANT) Q_PROPERTY(bool userConfiguring READ isUserConfiguring) Q_PROPERTY(BackgroundHints backgroundHints READ backgroundHints WRITE setBackgroundHints) Q_ENUMS(BackgroundHints)