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 --- src/kconfig_compiler/kconfig_compiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kconfig_compiler/kconfig_compiler.cpp') diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp index 4c823f7c..c7f2d9d9 100644 --- a/src/kconfig_compiler/kconfig_compiler.cpp +++ b/src/kconfig_compiler/kconfig_compiler.cpp @@ -1956,8 +1956,8 @@ int main(int argc, char **argv) } 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); -- cgit v1.2.1