diff options
author | Aleix Pol <aleixpol@kde.org> | 2019-09-17 00:04:26 +0200 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2019-10-04 01:30:56 +0200 |
commit | a23acd2f1535a94ef3f7477040890b175c3651b6 (patch) | |
tree | 8e0d3cb0f071b5cd64cbdeaebdf8716bd690462b /autotests/kconfig_compiler/test13.h.ref | |
parent | b80648cf56c6ffd414f3222fffed234fad859ba6 (diff) | |
download | kconfig-a23acd2f1535a94ef3f7477040890b175c3651b6.tar.gz kconfig-a23acd2f1535a94ef3f7477040890b175c3651b6.tar.bz2 |
Fix generating properties that start with an uppercase letter
Summary: We were not adjusting the property name to the getter letter-casing.
Test Plan: See added test, also fixes the issue that made me realize this issue.
Reviewers: #frameworks, davidedmundson
Reviewed By: davidedmundson
Subscribers: ngraham, aacid, kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D24010
Diffstat (limited to 'autotests/kconfig_compiler/test13.h.ref')
-rw-r--r-- | autotests/kconfig_compiler/test13.h.ref | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test13.h.ref b/autotests/kconfig_compiler/test13.h.ref index 441643f7..6c67fc5d 100644 --- a/autotests/kconfig_compiler/test13.h.ref +++ b/autotests/kconfig_compiler/test13.h.ref @@ -47,6 +47,16 @@ class Test13 : public KConfigSkeleton } + Q_PROPERTY(bool startsWithUppercase READ startsWithUppercase CONSTANT) + /** + Get StartsWithUppercase + */ + bool startsWithUppercase() const + { + return mStartsWithUppercase; + } + + enum { signalBrightnessChanged = 0x1 }; @@ -62,6 +72,7 @@ class Test13 : public KConfigSkeleton // kamoso QUrl mPicturesDir; double mBrightness; + bool mStartsWithUppercase; private: }; |