diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kio/tests/kurlcompletiontest.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/tests/kurlcompletiontest.cpp')
-rw-r--r-- | kio/tests/kurlcompletiontest.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kio/tests/kurlcompletiontest.cpp b/kio/tests/kurlcompletiontest.cpp index ac0108ead..612dab558 100644 --- a/kio/tests/kurlcompletiontest.cpp +++ b/kio/tests/kurlcompletiontest.cpp @@ -19,9 +19,9 @@ #include <kapplication.h> #include <kurlcompletion.h> #include <kdebug.h> -#include <qdir.h> +#include <tqdir.h> #include <assert.h> -#include <qfile.h> +#include <tqfile.h> #include <ktempdir.h> #include <kcmdlineargs.h> #include <unistd.h> @@ -42,7 +42,7 @@ private: KURLCompletion* m_completion; KTempDir* m_tempDir; KURL m_dirURL; - QString m_dir; + TQString m_dir; }; void KURLCompletionTest::setup( bool setDirAsURL ) @@ -62,12 +62,12 @@ void KURLCompletionTest::setup( bool setDirAsURL ) } m_dirURL.setPath( m_dir ); - QFile f1( m_dir + "/file1" ); + TQFile f1( m_dir + "/file1" ); bool ok = f1.open( IO_WriteOnly ); assert( ok ); f1.close(); - QFile f2( m_dir + "/file#a" ); + TQFile f2( m_dir + "/file#a" ); ok = f2.open( IO_WriteOnly ); assert( ok ); f2.close(); @@ -94,22 +94,22 @@ void KURLCompletionTest::testLocalRelativePath() // Completion from relative path, with two matches m_completion->makeCompletion( "f" ); waitForCompletion(); - QStringList comp1all = m_completion->allMatches(); + TQStringList comp1all = m_completion->allMatches(); assert( comp1all.count() == 2 ); assert( comp1all.find( "file1" ) != comp1all.end() ); assert( comp1all.find( "file#a" ) != comp1all.end() ); - QString comp1 = m_completion->replacedPath( "file1" ); // like KURLRequester does + TQString comp1 = m_completion->replacedPath( "file1" ); // like KURLRequester does assert( comp1 == "file1" ); // Completion from relative path kdDebug() << endl << k_funcinfo << "now completing on 'file#'" << endl; m_completion->makeCompletion( "file#" ); waitForCompletion(); - QStringList compall = m_completion->allMatches(); + TQStringList compall = m_completion->allMatches(); kdDebug() << compall << endl; assert( compall.count() == 1 ); assert( compall.first() == "file#a" ); - QString comp2 = m_completion->replacedPath( compall.first() ); // like KURLRequester does + TQString comp2 = m_completion->replacedPath( compall.first() ); // like KURLRequester does assert( comp2 == "file#a" ); } @@ -119,10 +119,10 @@ void KURLCompletionTest::testLocalAbsolutePath() kdDebug() << k_funcinfo << m_dir+"file#" << endl; m_completion->makeCompletion( m_dir + "file#" ); waitForCompletion(); - QStringList compall = m_completion->allMatches(); + TQStringList compall = m_completion->allMatches(); kdDebug() << compall << endl; assert( compall.count() == 1 ); - QString comp = compall.first(); + TQString comp = compall.first(); assert( comp == m_dir + "file#a" ); comp = m_completion->replacedPath( comp ); // like KURLRequester does assert( comp == m_dir + "file#a" ); @@ -135,20 +135,20 @@ void KURLCompletionTest::testLocalURL() KURL url = KURL::fromPathOrURL( m_dirURL.path() + "file" ); m_completion->makeCompletion( url.prettyURL() ); waitForCompletion(); - QStringList comp1all = m_completion->allMatches(); + TQStringList comp1all = m_completion->allMatches(); kdDebug() << comp1all << endl; assert( comp1all.count() == 2 ); assert( comp1all.find( m_dirURL.url() + "file1" ) != comp1all.end() ); - QString filehash = m_dirURL.url() + "file%23a"; + TQString filehash = m_dirURL.url() + "file%23a"; assert( comp1all.find( filehash ) != comp1all.end() ); - QString filehashPath = m_completion->replacedPath( filehash ); // note that it returns a path!! + TQString filehashPath = m_completion->replacedPath( filehash ); // note that it returns a path!! kdDebug() << filehashPath << endl; assert( filehashPath == m_dirURL.path() + "file#a" ); // Completion from URL with no match url = KURL::fromPathOrURL( m_dirURL.path() + "foobar" ); kdDebug() << k_funcinfo << "makeCompletion(" << url << ")" << endl; - QString comp2 = m_completion->makeCompletion( url.prettyURL() ); + TQString comp2 = m_completion->makeCompletion( url.prettyURL() ); assert( comp2.isEmpty() ); waitForCompletion(); assert( m_completion->allMatches().isEmpty() ); |