diff options
-rw-r--r-- | autotests/kconfig_compiler/test13.h.ref | 6 | ||||
-rw-r--r-- | src/kconfig_compiler/KConfigHeaderGenerator.cpp | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/autotests/kconfig_compiler/test13.h.ref b/autotests/kconfig_compiler/test13.h.ref index 6dad0e57..45863900 100644 --- a/autotests/kconfig_compiler/test13.h.ref +++ b/autotests/kconfig_compiler/test13.h.ref @@ -17,7 +17,7 @@ class Test13 : public KConfigSkeleton ~Test13(); Q_PROPERTY(QUrl picturesDir READ picturesDir CONSTANT) - Q_PROPERTY(bool isPicturesDirImmutable CONSTANT) + Q_PROPERTY(bool isPicturesDirImmutable READ isPicturesDirImmutable CONSTANT) /** Get picturesDir */ @@ -46,7 +46,7 @@ class Test13 : public KConfigSkeleton } Q_PROPERTY(double brightness READ brightness WRITE setBrightness NOTIFY brightnessChanged) - Q_PROPERTY(bool isBrightnessImmutable CONSTANT) + Q_PROPERTY(bool isBrightnessImmutable READ isBrightnessImmutable CONSTANT) /** Get brightness */ @@ -64,7 +64,7 @@ class Test13 : public KConfigSkeleton } Q_PROPERTY(bool startsWithUppercase READ startsWithUppercase CONSTANT) - Q_PROPERTY(bool isStartsWithUppercaseImmutable CONSTANT) + Q_PROPERTY(bool isStartsWithUppercaseImmutable READ isStartsWithUppercaseImmutable CONSTANT) /** Get StartsWithUppercase */ diff --git a/src/kconfig_compiler/KConfigHeaderGenerator.cpp b/src/kconfig_compiler/KConfigHeaderGenerator.cpp index f6c39b6a..84f89e26 100644 --- a/src/kconfig_compiler/KConfigHeaderGenerator.cpp +++ b/src/kconfig_compiler/KConfigHeaderGenerator.cpp @@ -424,6 +424,7 @@ void KConfigHeaderGenerator::createImmutableProperty(const CfgEntry *entry) } stream() << whitespace(); stream() << "Q_PROPERTY(bool " << immutableFunction(entry->name); + stream() << " READ " << immutableFunction(entry->name); stream() << " CONSTANT)\n"; } |