From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kunittest/example/module/sampletests.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kunittest/example/module/sampletests.cpp') diff --git a/kunittest/example/module/sampletests.cpp b/kunittest/example/module/sampletests.cpp index 3b253e55..89e7516a 100644 --- a/kunittest/example/module/sampletests.cpp +++ b/kunittest/example/module/sampletests.cpp @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#include #include #include @@ -35,7 +35,7 @@ void SlotSampleTester::setUp() { kdDebug() << "setUp" << endl; - m_str = new QString("setUp str"); + m_str = new TQString("setUp str"); } void SlotSampleTester::tearDown() @@ -56,7 +56,7 @@ void SlotSampleTester::testSlot() CHECK( test() , true); CHECK( "test" , "test"); kdDebug() << "Checking if m_str is initialized correctly." << endl; - CHECK( *m_str , QString("setUp str") ); + CHECK( *m_str , TQString("setUp str") ); } void SlotSampleTester::testSlot2() @@ -72,10 +72,10 @@ void SomeSampleTester::allTests() kdDebug() << "Checking operator precedences." << endl; CHECK( 2.0 * 3.0 / 2.0 * 4.0 / 2.0 , 6.0 ); - QStringList testList; + TQStringList testList; testList << "one" << "two"; - CHECK( testList.count() , (QStringList::size_type) 2 ); - CHECK( testList.count()*2 , (QStringList::size_type) 4 ); + CHECK( testList.count() , (TQStringList::size_type) 2 ); + CHECK( testList.count()*2 , (TQStringList::size_type) 4 ); } #include "sampletests.moc" -- cgit v1.2.3