From a23acd2f1535a94ef3f7477040890b175c3651b6 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 17 Sep 2019 00:04:26 +0200 Subject: 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 --- autotests/kconfig_compiler/test13.cpp.ref | 3 +++ 1 file changed, 3 insertions(+) (limited to 'autotests/kconfig_compiler/test13.cpp.ref') diff --git a/autotests/kconfig_compiler/test13.cpp.ref b/autotests/kconfig_compiler/test13.cpp.ref index 3beea1d0..0f62dc96 100644 --- a/autotests/kconfig_compiler/test13.cpp.ref +++ b/autotests/kconfig_compiler/test13.cpp.ref @@ -16,6 +16,9 @@ Test13::Test13( ) 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() -- cgit v1.2.1