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/kdirwatchunittest.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/kdirwatchunittest.cpp')
-rw-r--r-- | kio/tests/kdirwatchunittest.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kio/tests/kdirwatchunittest.cpp b/kio/tests/kdirwatchunittest.cpp index d523909ec..1bd17edd6 100644 --- a/kio/tests/kdirwatchunittest.cpp +++ b/kio/tests/kdirwatchunittest.cpp @@ -11,8 +11,8 @@ #include <unistd.h> -#include <qfile.h> -#include <qdir.h> +#include <tqfile.h> +#include <tqdir.h> #include <kdebug.h> @@ -39,7 +39,7 @@ void KDirWatchTest::VERIFY_NOTHING() VERIFY (nothing_failed); } -void KDirWatchTest::VERIFY_DIRTY(const QString& alert) +void KDirWatchTest::VERIFY_DIRTY(const TQString& alert) { unsigned m_s[3]; for(int i = 0; i < 3; ++i) @@ -56,7 +56,7 @@ void KDirWatchTest::VERIFY_DIRTY(const QString& alert) m_lastSignal == alert); } -void KDirWatchTest::VERIFY_CREATED(const QString& alert) +void KDirWatchTest::VERIFY_CREATED(const TQString& alert) { unsigned m_s[3]; for(int i = 0; i < 3; ++i) @@ -73,7 +73,7 @@ void KDirWatchTest::VERIFY_CREATED(const QString& alert) m_lastSignal == alert); } -void KDirWatchTest::VERIFY_DELETED(const QString& alert) +void KDirWatchTest::VERIFY_DELETED(const TQString& alert) { unsigned m_s[3]; for(int i = 0; i < 3; ++i) @@ -90,26 +90,26 @@ void KDirWatchTest::VERIFY_DELETED(const QString& alert) m_lastSignal == alert); } -void KDirWatchTest::remove_file (const QString& file) +void KDirWatchTest::remove_file (const TQString& file) { - ::unlink (QFile::encodeName(file)); + ::unlink (TQFile::encodeName(file)); } -void KDirWatchTest::touch_file (const QString& file) +void KDirWatchTest::touch_file (const TQString& file) { - QFile f(file); + TQFile f(file); f.open(IO_WriteOnly); } -void KDirWatchTest::rename_file(const QString& from, const QString& to) +void KDirWatchTest::rename_file(const TQString& from, const TQString& to) { - ::rename(QFile::encodeName(from), QFile::encodeName(to)); + ::rename(TQFile::encodeName(from), TQFile::encodeName(to)); } KUNITTEST_MODULE ( kunittest_kdirwatch, "KDirWatchTest" ) KUNITTEST_MODULE_REGISTER_TESTER (KDirWatchTest) -#define SLEEP() QApplication::processEvents(); +#define SLEEP() TQApplication::processEvents(); void KDirWatchTest::allTests() { @@ -117,12 +117,12 @@ void KDirWatchTest::allTests() d = new KDirWatch; VERIFY (d != 0); - QDir* dir = new QDir(m_workingDir); + TQDir* dir = new TQDir(m_workingDir); VERIFY (dir != 0); - connect(d, SIGNAL (dirty( const QString &)), SLOT( slotDirty( const QString &)) ); - connect(d, SIGNAL (created( const QString &)), SLOT( slotCreated( const QString &)) ); - connect(d, SIGNAL (deleted( const QString &)), SLOT( slotDeleted( const QString &)) ); + connect(d, TQT_SIGNAL (dirty( const TQString &)), TQT_SLOT( slotDirty( const TQString &)) ); + connect(d, TQT_SIGNAL (created( const TQString &)), TQT_SLOT( slotCreated( const TQString &)) ); + connect(d, TQT_SIGNAL (deleted( const TQString &)), TQT_SLOT( slotDeleted( const TQString &)) ); VERIFY (dir->mkdir (m_workingDir)); |