From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../kconfig_compiler/tests/kconfigcompiler_test.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kdecore/kconfig_compiler/tests/kconfigcompiler_test.cpp') diff --git a/kdecore/kconfig_compiler/tests/kconfigcompiler_test.cpp b/kdecore/kconfig_compiler/tests/kconfigcompiler_test.cpp index 31f3f5ee9..2f8e7eee3 100644 --- a/kdecore/kconfig_compiler/tests/kconfigcompiler_test.cpp +++ b/kdecore/kconfig_compiler/tests/kconfigcompiler_test.cpp @@ -13,8 +13,8 @@ ************************************************************************* */ -#include -#include +#include +#include #include #include #include "kconfigcompiler_test.h" @@ -44,7 +44,7 @@ static CompilerTestSet testCases = static CompilerTestSet willFailCases = { - // where is that QDir comming from? + // where is that TQDir comming from? //"test9.cpp", NULL NULL }; @@ -61,7 +61,7 @@ void KConfigCompiler_Test::testExpectedOutput() // Known to pass test cases while (testCases[ i ]) { - performCompare(QString::fromLatin1(testCases[ i ])); + performCompare(TQString::fromLatin1(testCases[ i ])); ++i; } @@ -69,20 +69,20 @@ void KConfigCompiler_Test::testExpectedOutput() i= 0; while (willFailCases[ i ]) { - performCompare(QString::fromLatin1(willFailCases[ i ]), true); + performCompare(TQString::fromLatin1(willFailCases[ i ]), true); ++i; } } -void KConfigCompiler_Test::performCompare(const QString &fileName, bool fail) +void KConfigCompiler_Test::performCompare(const TQString &fileName, bool fail) { - QFile file(fileName); - QFile fileRef(QString::fromLatin1(SRCDIR) + QString::fromLatin1("/") + fileName + QString::fromLatin1(".ref")); + TQFile file(fileName); + TQFile fileRef(TQString::fromLatin1(SRCDIR) + TQString::fromLatin1("/") + fileName + TQString::fromLatin1(".ref")); if ( file.open(IO_ReadOnly) && fileRef.open(IO_ReadOnly) ) { - QString content = file.readAll(); - QString contentRef = fileRef.readAll(); + TQString content = file.readAll(); + TQString contentRef = fileRef.readAll(); if (!fail) CHECK( content, contentRef); -- cgit v1.2.3