tdecore/tdeconfig_compiler: add check/test executables

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 57e73e9e4c)
pull/16/head
Alexander Golubev 8 years ago committed by Slávek Banko
parent fa50fd0125
commit cbd9e3ba0b

@ -9,6 +9,8 @@
# #
################################################# #################################################
add_subdirectory(tests)
include_directories( include_directories(
${TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/tdecore ${CMAKE_BINARY_DIR}/tdecore

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<include>qdir.h</include> <include>tqdir.h</include>
<kcfgfile name="examplerc"> <kcfgfile name="examplerc">
<parameter name="transport" /> <parameter name="transport" />
<parameter name="folder" /> <parameter name="folder" />
@ -35,7 +35,7 @@
</entry> </entry>
<entry name="MyPath" type="Path"> <entry name="MyPath" type="Path">
<label>This is a path</label> <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>
<entry name="AnotherOption2" type="Int" key="Another Option"> <entry name="AnotherOption2" type="Int" key="Another Option">
<label>Another option</label> <label>Another option</label>

@ -26,7 +26,7 @@ Test4::Test4( )
mSelf = this; mSelf = this;
setCurrentGroup( TQString::fromLatin1( "Foo" ) ); 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]; TDEConfigSkeleton::ItemColor *itemColor[4];
itemColor[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #0" ), mColor[0], defaultColor[0] ); itemColor[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #0" ), mColor[0], defaultColor[0] );
addItem( itemColor[0], TQString::fromLatin1( "Color0" ) ); addItem( itemColor[0], TQString::fromLatin1( "Color0" ) );

@ -9,7 +9,7 @@
<entry name="Color$(Number)" type="Color" key="color #$(Number)"> <entry name="Color$(Number)" type="Color" key="color #$(Number)">
<parameter name="Number" type="Int" max="3"/> <parameter name="Number" type="Int" max="3"/>
<label>Block colors.</label> <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> <default code="true">defaultColor[$(Number)]</default>
</entry> </entry>
<entry name="MouseAction$(Button)" type="Enum" key="$(Button)_mouse_action"> <entry name="MouseAction$(Button)" type="Enum" key="$(Button)_mouse_action">

@ -26,7 +26,7 @@ Test5::Test5( )
mSelf = this; mSelf = this;
setCurrentGroup( TQString::fromLatin1( "Foo" ) ); 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]; TDEConfigSkeleton::ItemColor *itemColor[4];
itemColor[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #0" ), mColor[0], defaultColor[0] ); itemColor[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #0" ), mColor[0], defaultColor[0] );
addItem( itemColor[0], TQString::fromLatin1( "Color0" ) ); addItem( itemColor[0], TQString::fromLatin1( "Color0" ) );

@ -9,7 +9,7 @@
<entry name="Color$(Number)" type="Color" key="color #$(Number)"> <entry name="Color$(Number)" type="Color" key="color #$(Number)">
<parameter name="Number" type="Int" max="3"/> <parameter name="Number" type="Int" max="3"/>
<label>Block colors.</label> <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> <default code="true">defaultColor[$(Number)]</default>
</entry> </entry>
<entry name="MouseAction$(Button)" type="Enum" key="$(Button)_mouse_action"> <entry name="MouseAction$(Button)" type="Enum" key="$(Button)_mouse_action">

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<include>qdir.h</include> <include>tqdir.h</include>
<kcfgfile name="examplerc"> <kcfgfile name="examplerc">
<parameter name="transport" /> <parameter name="transport" />
<parameter name="folder" /> <parameter name="folder" />
@ -18,7 +18,7 @@
</entry> </entry>
<entry name="MyPathsList2" type="PathList"> <entry name="MyPathsList2" type="PathList">
<label>This is an additional test for PathList</label> <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> </entry>
</group> </group>
</kcfg> </kcfg>

Loading…
Cancel
Save