diff options
author | Aleix Pol <aleixpol@kde.org> | 2015-04-26 01:41:29 +0200 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2015-04-26 01:41:29 +0200 |
commit | 97552ff2ecd13eb4398231650e2f719f7a7ba052 (patch) | |
tree | ae9d525c7200cc734f1976bc9fc49f16f954976f /autotests/kconfig_compiler/test_signal.cpp.ref | |
parent | 611ab289b16e100f4842906bb956e479d7c4e7a4 (diff) | |
download | kconfig-97552ff2ecd13eb4398231650e2f719f7a7ba052.tar.gz kconfig-97552ff2ecd13eb4398231650e2f719f7a7ba052.tar.bz2 |
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
Diffstat (limited to 'autotests/kconfig_compiler/test_signal.cpp.ref')
-rw-r--r-- | autotests/kconfig_compiler/test_signal.cpp.ref | 11 |
1 files changed, 5 insertions, 6 deletions
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" |