From 97552ff2ecd13eb4398231650e2f719f7a7ba052 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Sun, 26 Apr 2015 01:41:29 +0200 Subject: Generate Q_PROPERTY entries out of KConfigSkeleton classes It adds a configuration setting that makes it possible to generate Q_PROPERTY instances out of each variable exposed by the configuration class. Especially useful when it comes to exposing these classes to QtQuick interfaces. REVIEW: 123367 CHANGELOG: Generate QML-proof classes using the kconfigcompiler --- autotests/kconfig_compiler/test_signal.cpp.ref | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'autotests/kconfig_compiler/test_signal.cpp.ref') diff --git a/autotests/kconfig_compiler/test_signal.cpp.ref b/autotests/kconfig_compiler/test_signal.cpp.ref index 58e73efd..6faf8bd1 100644 --- a/autotests/kconfig_compiler/test_signal.cpp.ref +++ b/autotests/kconfig_compiler/test_signal.cpp.ref @@ -61,18 +61,17 @@ bool TestSignal::usrWriteConfig() const bool res = KConfigSkeleton::usrWriteConfig(); if (!res) return false; - if ( mSettingsChanged & signalEmoticonSettingsChanged ) - emit emoticonSettingsChanged(); - - if ( mSettingsChanged & signalStyleChanged ) - emit styleChanged(mStylePath, mStyleCSSVariant); - + if ( mSettingsChanged & signalEmoticonSettingsChanged ) + Q_EMIT emoticonSettingsChanged(); + if ( mSettingsChanged & signalStyleChanged ) + Q_EMIT styleChanged(mStylePath, mStyleCSSVariant); mSettingsChanged = 0; return true; } void TestSignal::itemChanged(quint64 flags) { mSettingsChanged |= flags; + } #include "test_signal.moc" -- cgit v1.2.1