From 57e73e9e4c61f9cfd9cc03fbbfa5970452e0e8a4 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 18 Dec 2016 16:41:34 +0300 Subject: tdecore/tdeconfig_compiler: add check/test executables Signed-off-by: Alexander Golubev --- tdecore/tdeconfig_compiler/CMakeLists.txt | 2 ++ tdecore/tdeconfig_compiler/tests/test1.kcfg | 4 ++-- tdecore/tdeconfig_compiler/tests/test4.cpp.ref | 2 +- tdecore/tdeconfig_compiler/tests/test4.kcfg | 2 +- tdecore/tdeconfig_compiler/tests/test5.cpp.ref | 2 +- tdecore/tdeconfig_compiler/tests/test5.kcfg | 2 +- tdecore/tdeconfig_compiler/tests/test9.kcfg | 4 ++-- 7 files changed, 10 insertions(+), 8 deletions(-) diff --git a/tdecore/tdeconfig_compiler/CMakeLists.txt b/tdecore/tdeconfig_compiler/CMakeLists.txt index 3da974a53..ec2eac9e7 100644 --- a/tdecore/tdeconfig_compiler/CMakeLists.txt +++ b/tdecore/tdeconfig_compiler/CMakeLists.txt @@ -9,6 +9,8 @@ # ################################################# +add_subdirectory(tests) + include_directories( ${TQT_INCLUDE_DIRS} ${CMAKE_BINARY_DIR}/tdecore diff --git a/tdecore/tdeconfig_compiler/tests/test1.kcfg b/tdecore/tdeconfig_compiler/tests/test1.kcfg index ce42aebfb..e2bbed175 100644 --- a/tdecore/tdeconfig_compiler/tests/test1.kcfg +++ b/tdecore/tdeconfig_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" > - qdir.h + tqdir.h @@ -35,7 +35,7 @@ - QDir::homeDirPath()+QString::fromLatin1(".hidden_file") + TQDir::homeDirPath()+TQString::fromLatin1(".hidden_file") diff --git a/tdecore/tdeconfig_compiler/tests/test4.cpp.ref b/tdecore/tdeconfig_compiler/tests/test4.cpp.ref index c68437969..d25447c3c 100644 --- a/tdecore/tdeconfig_compiler/tests/test4.cpp.ref +++ b/tdecore/tdeconfig_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 }; TDEConfigSkeleton::ItemColor *itemColor[4]; itemColor[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #0" ), mColor[0], defaultColor[0] ); addItem( itemColor[0], TQString::fromLatin1( "Color0" ) ); diff --git a/tdecore/tdeconfig_compiler/tests/test4.kcfg b/tdecore/tdeconfig_compiler/tests/test4.kcfg index d8ef2bfae..ef649e4c4 100644 --- a/tdecore/tdeconfig_compiler/tests/test4.kcfg +++ b/tdecore/tdeconfig_compiler/tests/test4.kcfg @@ -9,7 +9,7 @@ - QColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black }; + TQColor defaultColor[4] = { TQt::red, TQt::blue, TQt::green, TQt::black }; defaultColor[$(Number)] diff --git a/tdecore/tdeconfig_compiler/tests/test5.cpp.ref b/tdecore/tdeconfig_compiler/tests/test5.cpp.ref index 17965999b..8a359ecd1 100644 --- a/tdecore/tdeconfig_compiler/tests/test5.cpp.ref +++ b/tdecore/tdeconfig_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 }; TDEConfigSkeleton::ItemColor *itemColor[4]; itemColor[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #0" ), mColor[0], defaultColor[0] ); addItem( itemColor[0], TQString::fromLatin1( "Color0" ) ); diff --git a/tdecore/tdeconfig_compiler/tests/test5.kcfg b/tdecore/tdeconfig_compiler/tests/test5.kcfg index d8ef2bfae..ef649e4c4 100644 --- a/tdecore/tdeconfig_compiler/tests/test5.kcfg +++ b/tdecore/tdeconfig_compiler/tests/test5.kcfg @@ -9,7 +9,7 @@ - QColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black }; + TQColor defaultColor[4] = { TQt::red, TQt::blue, TQt::green, TQt::black }; defaultColor[$(Number)] diff --git a/tdecore/tdeconfig_compiler/tests/test9.kcfg b/tdecore/tdeconfig_compiler/tests/test9.kcfg index b7495e2b6..2c4f1ffa8 100644 --- a/tdecore/tdeconfig_compiler/tests/test9.kcfg +++ b/tdecore/tdeconfig_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" > - qdir.h + tqdir.h @@ -18,7 +18,7 @@ - QStringList(QString::fromLatin1("/usr/bin")) += QDir::homeDirPath() + TQStringList(TQString::fromLatin1("/usr/bin")) += TQDir::homeDirPath() -- cgit v1.2.1