Files
RedBear-OS/local/recipes/kde/kf6-kconfig/source/autotests/kconfig_compiler/test9.cpp.ref
T
2026-04-14 10:51:06 +01:00

36 lines
1.5 KiB
Plaintext

// This file is generated by kconfig_compiler_kf6 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( QStringLiteral( "examplerc" ) )
, mParamtransport(transport)
, mParamfolder(folder)
{
setCurrentGroup( QStringLiteral( "MyOptionsXX" ) );
QStringList defaultMyStringList;
defaultMyStringList.append( QString::fromUtf8( "up" ) );
defaultMyStringList.append( QString::fromUtf8( "down" ) );
KConfigSkeleton::ItemStringList *itemMyStringList;
itemMyStringList = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "MyStringList" ), mMyStringList, defaultMyStringList );
addItem( itemMyStringList, QStringLiteral( "MyStringList" ) );
QStringList defaultMyPathList;
defaultMyPathList.append( QString::fromUtf8( "/home" ) );
defaultMyPathList.append( QString::fromUtf8( "~" ) );
KConfigSkeleton::ItemPathList *itemMyPathList;
itemMyPathList = new KConfigSkeleton::ItemPathList( currentGroup(), QStringLiteral( "MyPathList" ), mMyPathList, defaultMyPathList );
addItem( itemMyPathList, QStringLiteral( "MyPathList" ) );
KConfigSkeleton::ItemPathList *itemMyPathsList2;
itemMyPathsList2 = new KConfigSkeleton::ItemPathList( currentGroup(), QStringLiteral( "MyPathsList2" ), mMyPathsList2, QStringList(QString::fromLatin1("/usr/bin")) << QDir::homePath() );
addItem( itemMyPathsList2, QStringLiteral( "MyPathsList2" ) );
}
Test9::~Test9()
{
}