blob: 1736889b8d1af058c01e4dd498772edba5c466f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// This file is generated by kconfig_compiler_kf5 from test_properties_minmax.kcfg.
// All changes you do to this file will be lost.
#include "test_properties_minmax.h"
TestPropertiesMinMax::TestPropertiesMinMax( KSharedConfig::Ptr config )
: KConfigSkeleton( std::move( config ) )
{
KConfigCompilerSignallingItem::NotifyFunction notifyFunction = static_cast<KConfigCompilerSignallingItem::NotifyFunction>(&TestPropertiesMinMax::itemChanged);
setCurrentGroup( QStringLiteral( "Something" ) );
KConfigCompilerSignallingItem *itemBar;
KConfigSkeleton::ItemInt *innerItemBar;
innerItemBar = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "bar" ), mBar, 42 );
itemBar = new KConfigCompilerSignallingItem(innerItemBar, this, notifyFunction, signalBarChanged);
innerItemBar->setMinValue(36);
innerItemBar->setMaxValue(102);
addItem( itemBar, QStringLiteral( "bar" ) );
}
TestPropertiesMinMax::~TestPropertiesMinMax()
{
}
void TestPropertiesMinMax::itemChanged(quint64 flags) {
if ( flags & signalBarChanged ) {
Q_EMIT barChanged();
}
}
#include "test_properties_minmax.moc"
|