diff --git a/autotests/kconfig_compiler/test13.h.ref b/autotests/kconfig_compiler/test13.h.ref --- a/autotests/kconfig_compiler/test13.h.ref +++ b/autotests/kconfig_compiler/test13.h.ref @@ -47,6 +47,16 @@ } + Q_PROPERTY(bool startsWithUppercase READ startsWithUppercase CONSTANT) + /** + Get StartsWithUppercase + */ + bool startsWithUppercase() const + { + return mStartsWithUppercase; + } + + enum { signalBrightnessChanged = 0x1 }; @@ -62,6 +72,7 @@ // kamoso QUrl mPicturesDir; double mBrightness; + bool mStartsWithUppercase; private: }; diff --git a/autotests/kconfig_compiler/test13.cpp.ref b/autotests/kconfig_compiler/test13.cpp.ref --- a/autotests/kconfig_compiler/test13.cpp.ref +++ b/autotests/kconfig_compiler/test13.cpp.ref @@ -16,6 +16,9 @@ KConfigCompilerSignallingItem *itemBrightness; itemBrightness = new KConfigCompilerSignallingItem(new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "brightness" ), mBrightness ), this, notifyFunction, signalBrightnessChanged); addItem( itemBrightness, QStringLiteral( "brightness" ) ); + KConfigSkeleton::ItemBool *itemStartsWithUppercase; + itemStartsWithUppercase = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "StartsWithUppercase" ), mStartsWithUppercase ); + addItem( itemStartsWithUppercase, QStringLiteral( "StartsWithUppercase" ) ); } Test13::~Test13() diff --git a/autotests/kconfig_compiler/test13.kcfg b/autotests/kconfig_compiler/test13.kcfg --- a/autotests/kconfig_compiler/test13.kcfg +++ b/autotests/kconfig_compiler/test13.kcfg @@ -7,5 +7,6 @@ + diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp --- a/src/kconfig_compiler/kconfig_compiler.cpp +++ b/src/kconfig_compiler/kconfig_compiler.cpp @@ -1956,8 +1956,8 @@ } if (cfg.generateProperties) { - h << " Q_PROPERTY(" << returnType << ' ' << n; - h << " READ " << n; + h << " Q_PROPERTY(" << returnType << ' ' << getFunction(n); + h << " READ " << getFunction(n); if (cfg.allMutators || cfg.mutators.contains(n)) { const QString signal = changeSignalName(n); h << " WRITE " << setFunction(n);