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 /kdecore/tests/kdebugtest.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 'kdecore/tests/kdebugtest.cpp')
-rw-r--r-- | kdecore/tests/kdebugtest.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kdecore/tests/kdebugtest.cpp b/kdecore/tests/kdebugtest.cpp index d97fb671b..ee49127ea 100644 --- a/kdecore/tests/kdebugtest.cpp +++ b/kdecore/tests/kdebugtest.cpp @@ -1,27 +1,27 @@ #include "kdebug.h" -#include <qwidget.h> +#include <tqwidget.h> #include <kinstance.h> #include <iostream> -#include <qapplication.h> -#include <qpen.h> -#include <qvariant.h> +#include <tqapplication.h> +#include <tqpen.h> +#include <tqvariant.h> class TestWidget : public QWidget { public: - TestWidget(QWidget* parent, const char* name) - : QWidget(parent, name) + TestWidget(TQWidget* parent, const char* name) + : TQWidget(parent, name) { kdDebug().form("mytest %s", "hello") << endl; - QString test = "%20C this is a string"; + TQString test = "%20C this is a string"; kdDebug(150) << test << endl; - QCString cstr = test.latin1(); + TQCString cstr = test.latin1(); kdDebug(150) << test << endl; - QChar ch = 'a'; - kdDebug() << "QChar a: " << ch << endl; + TQChar ch = 'a'; + kdDebug() << "TQChar a: " << ch << endl; ch = '\r'; - kdDebug() << "QChar \\r: " << ch << endl; + kdDebug() << "TQChar \\r: " << ch << endl; kdDebug() << k_lineinfo << "error on this line" << endl; kdDebug(2 == 2) << "this is right " << perror << endl; kdDebug() << "Before instance creation" << endl; @@ -32,42 +32,42 @@ public: // kdDebug() << "This number should come out as appname " << 5 << " " << "test" << endl; kdWarning() << "1+1 = " << 1+1+1 << endl; kdError(1+1 != 2) << "there is something really odd!" << endl; - QString s = "mystring"; + TQString s = "mystring"; kdDebug() << s << endl; kdError(1202) << "Error !!!" << endl; kdError() << "Error with no area" << endl; - kdDebug() << "Printing a null QWidget pointer: " << (QWidget*)0 << endl; + kdDebug() << "Printing a null TQWidget pointer: " << (TQWidget*)0 << endl; kdDebug() << "char " << '^' << " " << char(26) << endl; - QPoint p(0,9); + TQPoint p(0,9); kdDebug() << p << endl; - QRect r(9,12,58,234); + TQRect r(9,12,58,234); kdDebug() << r << endl; - QRegion reg(r); - reg += QRect(1,60,200,59); + TQRegion reg(r); + reg += TQRect(1,60,200,59); kdDebug() << reg << endl; - QStringList sl; + TQStringList sl; sl << "hi" << "this" << "list" << "is" << "short"; kdDebug() << sl << endl; - QValueList<int> il; - kdDebug() << "Empty QValueList<int>: " << il << endl; + TQValueList<int> il; + kdDebug() << "Empty TQValueList<int>: " << il << endl; il << 1 << 2 << 3 << 4 << 5; - kdDebug() << "QValueList<int> filled: " << il << endl; + kdDebug() << "TQValueList<int> filled: " << il << endl; Q_LLONG big = 65536LL*65536*500; kdDebug() << big << endl; - QVariant v( 0.12345 ); + TQVariant v( 0.12345 ); kdDebug() << "Variant: " << v << endl; - v = QPen( Qt::red ); + v = TQPen( Qt::red ); kdDebug() << "Variant: " << v << endl; - QByteArray data( 6 ); + TQByteArray data( 6 ); data[0] = 42; data[1] = 'H'; data[2] = 'e'; @@ -79,7 +79,7 @@ public: data.fill( 42 ); kdDebug() << data << endl; } - void resizeEvent(QResizeEvent*) + void resizeEvent(TQResizeEvent*) { kdDebug() << this << endl; } @@ -87,7 +87,7 @@ public: int main(int argc, char** argv) { - QApplication app(argc, argv); + TQApplication app(argc, argv); TestWidget widget(0, "NoNameWidget"); widget.setGeometry(45, 54, 120, 80); widget.show(); |