summaryrefslogtreecommitdiffstats
path: root/kmdi/test/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kmdi/test/main.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-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 'kmdi/test/main.cpp')
-rw-r--r--kmdi/test/main.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kmdi/test/main.cpp b/kmdi/test/main.cpp
index 95d9c2f83..768fd087b 100644
--- a/kmdi/test/main.cpp
+++ b/kmdi/test/main.cpp
@@ -29,8 +29,8 @@
# include <kapplication.h>
KApplication* theApp;
#else
-# include <qapplication.h>
- QApplication* theApp;
+# include <tqapplication.h>
+ TQApplication* theApp;
#endif
//#include <iostream.h>
@@ -44,7 +44,7 @@ int main( int argc, char **argv )
#ifndef NO_KDE
KApplication a(argc,argv,"KFourChildren");
#else
- QApplication a(argc,argv);
+ TQApplication a(argc,argv);
#endif
theApp = &a;
@@ -59,7 +59,7 @@ int main( int argc, char **argv )
// SHOW(h1->caption());
// SHOW(h1->tabCaption());
- QWidget* w = new QWidget(mainWdg);
+ TQWidget* w = new TQWidget(mainWdg);
KMdiChildView* h2 = mainWdg->createWrapper(w, "I'm a common but wrapped QWidget!", "Hello2");
mainWdg->addWindow( h2 );
// SHOW(h2->caption());
@@ -67,20 +67,20 @@ int main( int argc, char **argv )
Hello* h3 = new Hello( "Hello3", "Dock me using the taskbar button context menu!", 0);
h3->setBackgroundColor( Qt::white );
- h3->setFont( QFont("times",20,QFont::Bold) );
+ h3->setFont( TQFont("times",20,TQFont::Bold) );
mainWdg->addWindow( h3, KMdi::Detach ); // undock this!
h3->setGeometry( 20, 20, 400, 100);
Hello* h4 = new Hello( "Hello4", "Hello world!", mainWdg);
h4->setMDICaption("Hello4 both changed");
- h4->setFont( QFont("times",32,QFont::Bold) );
+ h4->setFont( TQFont("times",32,TQFont::Bold) );
mainWdg->addWindow( h4);
// SHOW(h4->caption());
// SHOW(h4->tabCaption());
Hello* h5 = new Hello( "Hello5", "I'm not a MDI widget :-(");
h5->setGeometry(40, 40, 400, 100);
- h5->setFont( QFont("times",20,QFont::Bold) );
+ h5->setFont( TQFont("times",20,TQFont::Bold) );
h5->setCaption("MDI Test Application");
h5->show();