diff options
Diffstat (limited to 'kdbg/testprogs/testfile.cpp')
-rw-r--r-- | kdbg/testprogs/testfile.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kdbg/testprogs/testfile.cpp b/kdbg/testprogs/testfile.cpp index 847ad3e..884ddad 100644 --- a/kdbg/testprogs/testfile.cpp +++ b/kdbg/testprogs/testfile.cpp @@ -1,8 +1,8 @@ #include <iostream> -#include <qstring.h> -#include <qfile.h> -#include <qfileinfo.h> -#include <qdir.h> +#include <ntqstring.h> +#include <ntqfile.h> +#include <ntqfileinfo.h> +#include <ntqdir.h> #include <math.h> enum E { red, green, blue, yellow }; @@ -34,7 +34,7 @@ class Dl : public Cl public: Dl(int r); virtual int f(int x); - int operator()(const QString& x, int& y) const; + int operator()(const TQString& x, int& y) const; operator const char*() { return 0; } operator PtrFunc*(); }; @@ -76,9 +76,9 @@ void f(E e[3], char c) char buffer[300]; memset(buffer, 1, 300); for (int i = 0; i < sizeof(buffer); i +=15) buffer[i] = '\02'; - QDir dir; - QFile file; - QFileInfo fi; + TQDir dir; + TQFile file; + TQFileInfo fi; x = red; emptyBase eb; emptyDerived ed; @@ -135,11 +135,11 @@ int main(int argc, char* argv[]) } (*pf[0])(e, '\n'); - QString s; + TQString s; s = "Hi, there!\r\n\t\"\'\\"; - const QString& strref = s; + const TQString& strref = s; templated_strtest(strtest, s); s = "asbcxxxxxxxxxxxxxxxxxxxxxxxxxxx"; @@ -190,7 +190,7 @@ int Dl::f(int x) return y+3; } -int Dl::operator()(const QString& x, int& y) const +int Dl::operator()(const TQString& x, int& y) const { std::cerr << "ha! I know!" << std::endl; return 1; |