diff options
Diffstat (limited to 'autotests/kconfig_compiler/test13.h.ref')
-rw-r--r-- | autotests/kconfig_compiler/test13.h.ref | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/autotests/kconfig_compiler/test13.h.ref b/autotests/kconfig_compiler/test13.h.ref index 3a6e7f89..6dad0e57 100644 --- a/autotests/kconfig_compiler/test13.h.ref +++ b/autotests/kconfig_compiler/test13.h.ref @@ -17,6 +17,7 @@ class Test13 : public KConfigSkeleton ~Test13(); Q_PROPERTY(QUrl picturesDir READ picturesDir CONSTANT) + Q_PROPERTY(bool isPicturesDirImmutable CONSTANT) /** Get picturesDir */ @@ -26,17 +27,26 @@ class Test13 : public KConfigSkeleton } /** + Is picturesDir Immutable + */ + bool isPicturesDirImmutable() const + { + return isImmutable( QStringLiteral( "picturesDir" ) ); + } + + /** Set brightness */ void setBrightness( double v ) { - if (v != mBrightness && !isImmutable( QStringLiteral( "brightness" ) )) { + if (v != mBrightness && !isBrightnessImmutable()) { mBrightness = v; Q_EMIT brightnessChanged(); } } Q_PROPERTY(double brightness READ brightness WRITE setBrightness NOTIFY brightnessChanged) + Q_PROPERTY(bool isBrightnessImmutable CONSTANT) /** Get brightness */ @@ -45,7 +55,16 @@ class Test13 : public KConfigSkeleton return mBrightness; } + /** + Is brightness Immutable + */ + bool isBrightnessImmutable() const + { + return isImmutable( QStringLiteral( "brightness" ) ); + } + Q_PROPERTY(bool startsWithUppercase READ startsWithUppercase CONSTANT) + Q_PROPERTY(bool isStartsWithUppercaseImmutable CONSTANT) /** Get StartsWithUppercase */ @@ -54,6 +73,14 @@ class Test13 : public KConfigSkeleton return mStartsWithUppercase; } + /** + Is StartsWithUppercase Immutable + */ + bool isStartsWithUppercaseImmutable() const + { + return isImmutable( QStringLiteral( "StartsWithUppercase" ) ); + } + enum { signalBrightnessChanged = 0x1 |