Warning, /frameworks/kconfig/autotests/kconfig_compiler/test_properties_minmax.cpp.ref is written in an unsupported language. File is not indexed.

0001 // This file is generated by kconfig_compiler_kf5 from test_properties_minmax.kcfg.
0002 // All changes you do to this file will be lost.
0003 
0004 #include "test_properties_minmax.h"
0005 
0006 TestPropertiesMinMax::TestPropertiesMinMax( KSharedConfig::Ptr config )
0007   : KConfigSkeleton( std::move( config ) )
0008 {
0009   KConfigCompilerSignallingItem::NotifyFunction notifyFunction = static_cast<KConfigCompilerSignallingItem::NotifyFunction>(&TestPropertiesMinMax::itemChanged);
0010 
0011   setCurrentGroup( QStringLiteral( "Something" ) );
0012 
0013   KConfigCompilerSignallingItem  *itemBar;
0014   KConfigSkeleton::ItemInt  *innerItemBar;
0015   innerItemBar = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "bar" ), mBar, 42 );
0016   itemBar = new KConfigCompilerSignallingItem(innerItemBar, this, notifyFunction, signalBarChanged);
0017   innerItemBar->setMinValue(36);
0018   innerItemBar->setMaxValue(102);
0019   addItem( itemBar, QStringLiteral( "bar" ) );
0020 }
0021 
0022 TestPropertiesMinMax::~TestPropertiesMinMax()
0023 {
0024 }
0025 
0026 
0027 void TestPropertiesMinMax::itemChanged(quint64 signalFlag) {
0028 
0029   switch (signalFlag) {
0030   case signalBarChanged:
0031     Q_EMIT barChanged();
0032     break;
0033   }
0034 }
0035 
0036 #include "test_properties_minmax.moc"
0037