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 test9.kcfg.
// All changes you do to this file will be lost.
#include "test9.h"
Test9::Test9( const QString & transport, const QString & folder )
: KConfigSkeleton( QLatin1String( "examplerc" ) )
, mParamtransport(transport)
, mParamfolder(folder)
{
setCurrentGroup( QLatin1String( "MyOptionsXX" ) );
QStringList defaultMyStringList;
defaultMyStringList.append( QString::fromUtf8( "up" ) );
defaultMyStringList.append( QString::fromUtf8( "down" ) );
KConfigSkeleton::ItemStringList *itemMyStringList;
itemMyStringList = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "MyStringList" ), mMyStringList, defaultMyStringList );
addItem( itemMyStringList, QLatin1String( "MyStringList" ) );
QStringList defaultMyPathList;
defaultMyPathList.append( QString::fromUtf8( "/home" ) );
defaultMyPathList.append( QString::fromUtf8( "~" ) );
KConfigSkeleton::ItemPathList *itemMyPathList;
itemMyPathList = new KConfigSkeleton::ItemPathList( currentGroup(), QLatin1String( "MyPathList" ), mMyPathList, defaultMyPathList );
addItem( itemMyPathList, QLatin1String( "MyPathList" ) );
KConfigSkeleton::ItemPathList *itemMyPathsList2;
itemMyPathsList2 = new KConfigSkeleton::ItemPathList( currentGroup(), QLatin1String( "MyPathsList2" ), mMyPathsList2, QStringList(QString::fromLatin1("/usr/bin")) << QDir::homePath() );
addItem( itemMyPathsList2, QLatin1String( "MyPathsList2" ) );
}
Test9::~Test9()
{
}
|