summaryrefslogtreecommitdiffstats
path: root/kdecore/kconfig_compiler
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2016-12-18 16:41:34 +0300
committerSlávek Banko <slavek.banko@axis.cz>2017-07-22 15:56:50 +0200
commiteac6bd09802ac61fc5aa9fc4c3f553ba98ef89f8 (patch)
treeee3573511616cc9c57ba47ea7ee23ec10b85677e /kdecore/kconfig_compiler
parentb285b4e15fe58d40d29d32a64544b86c0a4569f3 (diff)
downloadtdelibs-eac6bd09802ac61fc5aa9fc4c3f553ba98ef89f8.tar.gz
tdelibs-eac6bd09802ac61fc5aa9fc4c3f553ba98ef89f8.zip
tdecore/tdeconfig_compiler: add check/test executables
Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 57e73e9e4c61f9cfd9cc03fbbfa5970452e0e8a4)
Diffstat (limited to 'kdecore/kconfig_compiler')
-rw-r--r--kdecore/kconfig_compiler/CMakeLists.txt2
-rw-r--r--kdecore/kconfig_compiler/tests/test1.kcfg4
-rw-r--r--kdecore/kconfig_compiler/tests/test4.cpp.ref2
-rw-r--r--kdecore/kconfig_compiler/tests/test4.kcfg2
-rw-r--r--kdecore/kconfig_compiler/tests/test5.cpp.ref2
-rw-r--r--kdecore/kconfig_compiler/tests/test5.kcfg2
-rw-r--r--kdecore/kconfig_compiler/tests/test9.kcfg4
7 files changed, 10 insertions, 8 deletions
diff --git a/kdecore/kconfig_compiler/CMakeLists.txt b/kdecore/kconfig_compiler/CMakeLists.txt
index bb0b97c2c..fc7f7d0e1 100644
--- a/kdecore/kconfig_compiler/CMakeLists.txt
+++ b/kdecore/kconfig_compiler/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
+add_subdirectory(tests)
+
include_directories(
${TQT_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/kdecore
diff --git a/kdecore/kconfig_compiler/tests/test1.kcfg b/kdecore/kconfig_compiler/tests/test1.kcfg
index ce42aebfb..e2bbed175 100644
--- a/kdecore/kconfig_compiler/tests/test1.kcfg
+++ b/kdecore/kconfig_compiler/tests/test1.kcfg
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
- <include>qdir.h</include>
+ <include>tqdir.h</include>
<kcfgfile name="examplerc">
<parameter name="transport" />
<parameter name="folder" />
@@ -35,7 +35,7 @@
</entry>
<entry name="MyPath" type="Path">
<label>This is a path</label>
- <default code="true">QDir::homeDirPath()+QString::fromLatin1(".hidden_file")</default>
+ <default code="true">TQDir::homeDirPath()+TQString::fromLatin1(".hidden_file")</default>
</entry>
<entry name="AnotherOption2" type="Int" key="Another Option">
<label>Another option</label>
diff --git a/kdecore/kconfig_compiler/tests/test4.cpp.ref b/kdecore/kconfig_compiler/tests/test4.cpp.ref
index 6918a8c8a..e180af51a 100644
--- a/kdecore/kconfig_compiler/tests/test4.cpp.ref
+++ b/kdecore/kconfig_compiler/tests/test4.cpp.ref
@@ -26,7 +26,7 @@ Test4::Test4( )
mSelf = this;
setCurrentGroup( TQString::fromLatin1( "Foo" ) );
-TQColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black };
+TQColor defaultColor[4] = { TQt::red, TQt::blue, TQt::green, TQt::black };
KConfigSkeleton::ItemColor *itemColor[4];
itemColor[0] = new KConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #0" ), mColor[0], defaultColor[0] );
addItem( itemColor[0], TQString::fromLatin1( "Color0" ) );
diff --git a/kdecore/kconfig_compiler/tests/test4.kcfg b/kdecore/kconfig_compiler/tests/test4.kcfg
index d8ef2bfae..ef649e4c4 100644
--- a/kdecore/kconfig_compiler/tests/test4.kcfg
+++ b/kdecore/kconfig_compiler/tests/test4.kcfg
@@ -9,7 +9,7 @@
<entry name="Color$(Number)" type="Color" key="color #$(Number)">
<parameter name="Number" type="Int" max="3"/>
<label>Block colors.</label>
- <code>QColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black };</code>
+ <code>TQColor defaultColor[4] = { TQt::red, TQt::blue, TQt::green, TQt::black };</code>
<default code="true">defaultColor[$(Number)]</default>
</entry>
<entry name="MouseAction$(Button)" type="Enum" key="$(Button)_mouse_action">
diff --git a/kdecore/kconfig_compiler/tests/test5.cpp.ref b/kdecore/kconfig_compiler/tests/test5.cpp.ref
index 8373eb3f6..c7afa3c23 100644
--- a/kdecore/kconfig_compiler/tests/test5.cpp.ref
+++ b/kdecore/kconfig_compiler/tests/test5.cpp.ref
@@ -26,7 +26,7 @@ Test5::Test5( )
mSelf = this;
setCurrentGroup( TQString::fromLatin1( "Foo" ) );
-TQColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black };
+TQColor defaultColor[4] = { TQt::red, TQt::blue, TQt::green, TQt::black };
KConfigSkeleton::ItemColor *itemColor[4];
itemColor[0] = new KConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #0" ), mColor[0], defaultColor[0] );
addItem( itemColor[0], TQString::fromLatin1( "Color0" ) );
diff --git a/kdecore/kconfig_compiler/tests/test5.kcfg b/kdecore/kconfig_compiler/tests/test5.kcfg
index d8ef2bfae..ef649e4c4 100644
--- a/kdecore/kconfig_compiler/tests/test5.kcfg
+++ b/kdecore/kconfig_compiler/tests/test5.kcfg
@@ -9,7 +9,7 @@
<entry name="Color$(Number)" type="Color" key="color #$(Number)">
<parameter name="Number" type="Int" max="3"/>
<label>Block colors.</label>
- <code>QColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black };</code>
+ <code>TQColor defaultColor[4] = { TQt::red, TQt::blue, TQt::green, TQt::black };</code>
<default code="true">defaultColor[$(Number)]</default>
</entry>
<entry name="MouseAction$(Button)" type="Enum" key="$(Button)_mouse_action">
diff --git a/kdecore/kconfig_compiler/tests/test9.kcfg b/kdecore/kconfig_compiler/tests/test9.kcfg
index b7495e2b6..2c4f1ffa8 100644
--- a/kdecore/kconfig_compiler/tests/test9.kcfg
+++ b/kdecore/kconfig_compiler/tests/test9.kcfg
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
- <include>qdir.h</include>
+ <include>tqdir.h</include>
<kcfgfile name="examplerc">
<parameter name="transport" />
<parameter name="folder" />
@@ -18,7 +18,7 @@
</entry>
<entry name="MyPathsList2" type="PathList">
<label>This is an additional test for PathList</label>
- <default code="true">QStringList(QString::fromLatin1("/usr/bin")) += QDir::homeDirPath()</default>
+ <default code="true">TQStringList(TQString::fromLatin1("/usr/bin")) += TQDir::homeDirPath()</default>
</entry>
</group>
</kcfg>