aboutsummaryrefslogtreecommitdiff
path: root/tier1/kconfig/autotests/kconfig_compiler/test1.cpp.ref
diff options
context:
space:
mode:
authorJenkins CI <null@kde.org>2013-12-18 00:45:18 +0000
committerJenkins CI <null@kde.org>2013-12-18 00:45:18 +0000
commit867e7a50e6396338ab4fe9aa22ad141e4cd344d2 (patch)
tree1d6f8d6c912fa04dc268b5580bcfe696fa538743 /tier1/kconfig/autotests/kconfig_compiler/test1.cpp.ref
parentc38b88497a833e482e6892b72c8f52adec6de857 (diff)
downloadkconfig-867e7a50e6396338ab4fe9aa22ad141e4cd344d2.tar.gz
kconfig-867e7a50e6396338ab4fe9aa22ad141e4cd344d2.tar.bz2
Move kconfig code to the root directory.
Diffstat (limited to 'tier1/kconfig/autotests/kconfig_compiler/test1.cpp.ref')
-rw-r--r--tier1/kconfig/autotests/kconfig_compiler/test1.cpp.ref72
1 files changed, 0 insertions, 72 deletions
diff --git a/tier1/kconfig/autotests/kconfig_compiler/test1.cpp.ref b/tier1/kconfig/autotests/kconfig_compiler/test1.cpp.ref
deleted file mode 100644
index 611ce5c1..00000000
--- a/tier1/kconfig/autotests/kconfig_compiler/test1.cpp.ref
+++ /dev/null
@@ -1,72 +0,0 @@
-// This file is generated by kconfig_compiler from test1.kcfg.
-// All changes you do to this file will be lost.
-
-#include "test1.h"
-
-Test1::Test1( const QString & transport, const QString & folder )
- : KConfigSkeleton( QLatin1String( "examplerc" ) )
- , mParamtransport(transport)
- , mParamfolder(folder)
-{
- setCurrentGroup( QString( QLatin1String( "General-%1" ) ).arg( mParamfolder ) );
-
- KConfigSkeleton::ItemBool *itemOneOption;
- itemOneOption = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "OneOption" ), mOneOption, true );
- addItem( itemOneOption, QLatin1String( "OneOption" ) );
- KConfigSkeleton::ItemInt *itemAnotherOption;
- itemAnotherOption = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Another Option" ), mAnotherOption, 5 );
- addItem( itemAnotherOption, QLatin1String( "AnotherOption" ) );
- QList<KConfigSkeleton::ItemEnum::Choice> valuesListOption;
- {
- KConfigSkeleton::ItemEnum::Choice choice;
- choice.name = QLatin1String("One");
- valuesListOption.append( choice );
- }
- {
- KConfigSkeleton::ItemEnum::Choice choice;
- choice.name = QLatin1String("Two");
- valuesListOption.append( choice );
- }
- {
- KConfigSkeleton::ItemEnum::Choice choice;
- choice.name = QLatin1String("Three");
- valuesListOption.append( choice );
- }
- KConfigSkeleton::ItemEnum *itemListOption;
- itemListOption = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "ListOption" ), mListOption, valuesListOption, EnumListOption::One );
- addItem( itemListOption, QLatin1String( "ListOption" ) );
-
- setCurrentGroup( QLatin1String( "MyOptions" ) );
-
- KConfigSkeleton::ItemString *itemMyString;
- itemMyString = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "MyString" ), mMyString, QLatin1String( "Default String" ) );
- addItem( itemMyString, QLatin1String( "MyString" ) );
- KConfigSkeleton::ItemPath *itemMyPath;
- itemMyPath = new KConfigSkeleton::ItemPath( currentGroup(), QLatin1String( "MyPath" ), mMyPath, QDir::homePath()+QString::fromLatin1(".hidden_file") );
- addItem( itemMyPath, QLatin1String( "MyPath" ) );
- KConfigSkeleton::ItemInt *itemAnotherOption2;
- itemAnotherOption2 = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Another Option" ), mAnotherOption2, 10 );
- addItem( itemAnotherOption2, QLatin1String( "AnotherOption2" ) );
- 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 defaultMyStringListHidden;
- defaultMyStringListHidden.append( QString::fromUtf8( "up" ) );
- defaultMyStringListHidden.append( QString::fromUtf8( "down" ) );
-
- KConfigSkeleton::ItemStringList *itemMyStringListHidden;
- itemMyStringListHidden = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "MyStringListHidden" ), mMyStringListHidden, defaultMyStringListHidden );
- addItem( itemMyStringListHidden, QLatin1String( "MyStringListHidden" ) );
- KConfigSkeleton::ItemInt *itemMyNumber;
- itemMyNumber = new KConfigSkeleton::ItemInt( currentGroup(), QString( QLatin1String( "List-%1-%2" ) ).arg( mParamtransport ).arg( mParamfolder ), mMyNumber, 1 );
- addItem( itemMyNumber, QLatin1String( "MyNumber" ) );
-}
-
-Test1::~Test1()
-{
-}
-