summaryrefslogtreecommitdiffstats
path: root/tdemdi/test
diff options
context:
space:
mode:
Diffstat (limited to 'tdemdi/test')
-rw-r--r--tdemdi/test/hello.cpp2
-rw-r--r--tdemdi/test/hello.h2
-rw-r--r--tdemdi/test/main.cpp6
-rw-r--r--tdemdi/test/mainwidget.cpp4
-rw-r--r--tdemdi/test/mainwidget.h4
5 files changed, 9 insertions, 9 deletions
diff --git a/tdemdi/test/hello.cpp b/tdemdi/test/hello.cpp
index d92233ea6..0790ce491 100644
--- a/tdemdi/test/hello.cpp
+++ b/tdemdi/test/hello.cpp
@@ -22,7 +22,7 @@ Hello::Hello( const char *title, const char *text, TQWidget *parentWidget )
: KMdiChildView(title, parentWidget), t(text), b(0)
{
TQTimer *timer = new TQTimer(this);
- TQObject::connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(animate()) );
+ TQObject::connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(animate()) );
timer->start( 40 );
resize( 260, 130 );
diff --git a/tdemdi/test/hello.h b/tdemdi/test/hello.h
index b6ce589a0..9af080d11 100644
--- a/tdemdi/test/hello.h
+++ b/tdemdi/test/hello.h
@@ -20,7 +20,7 @@ class TQPaintEvent;
class Hello : public KMdiChildView
{
- Q_OBJECT
+ TQ_OBJECT
public:
Hello( const char *title, const char *text, TQWidget* parentWidget = 0 );
signals:
diff --git a/tdemdi/test/main.cpp b/tdemdi/test/main.cpp
index c89cb2faa..7d404ea8e 100644
--- a/tdemdi/test/main.cpp
+++ b/tdemdi/test/main.cpp
@@ -54,19 +54,19 @@ int main( int argc, char **argv )
Hello* h1 = new Hello( "Hello1", "Click the right mouse button on the mainframe!", mainWdg);
h1->setTabCaption("Tab changed");
- h1->setBackgroundColor( Qt::white );
+ h1->setBackgroundColor( TQt::white );
mainWdg->addWindow( h1);
// SHOW(h1->caption());
// SHOW(h1->tabCaption());
TQWidget* w = new TQWidget(mainWdg);
- KMdiChildView* h2 = mainWdg->createWrapper(w, "I'm a common but wrapped QWidget!", "Hello2");
+ KMdiChildView* h2 = mainWdg->createWrapper(w, "I'm a common but wrapped TQWidget!", "Hello2");
mainWdg->addWindow( h2 );
// SHOW(h2->caption());
// SHOW(h2->tabCaption());
Hello* h3 = new Hello( "Hello3", "Dock me using the taskbar button context menu!", 0);
- h3->setBackgroundColor( Qt::white );
+ h3->setBackgroundColor( TQt::white );
h3->setFont( TQFont("times",20,TQFont::Bold) );
mainWdg->addWindow( h3, KMdi::Detach ); // undock this!
h3->setGeometry( 20, 20, 400, 100);
diff --git a/tdemdi/test/mainwidget.cpp b/tdemdi/test/mainwidget.cpp
index 494a42c4f..6438ff978 100644
--- a/tdemdi/test/mainwidget.cpp
+++ b/tdemdi/test/mainwidget.cpp
@@ -90,7 +90,7 @@ MainWidget::~MainWidget()
TQString s = doc.toString();
TQFile f("/tmp/dc.txt");
f.open(IO_ReadWrite);
- f.tqwriteBlock(s.latin1(), s.length());
+ f.writeBlock(s.latin1(), s.length());
f.close();
}
@@ -114,7 +114,7 @@ RestartWidget::RestartWidget():TDEMainWindow()
TQLabel* l = new TQLabel("This is for the testing of\nKMdiMainFrm::read/writeDockConfig().\n", this);
TQCheckBox* b1 = new TQCheckBox("KMdiMainFrm close/restart", this);
b1->toggle();
- TQObject::connect(b1, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(onStateChanged(int)));
+ TQObject::connect(b1, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(onStateChanged(int)));
bl->add(l);
bl->add(b1);
bl->setMargin(10);
diff --git a/tdemdi/test/mainwidget.h b/tdemdi/test/mainwidget.h
index f1635d25e..a59989f9a 100644
--- a/tdemdi/test/mainwidget.h
+++ b/tdemdi/test/mainwidget.h
@@ -29,7 +29,7 @@
*/
class MainWidget : public KMdiMainFrm
{
- Q_OBJECT
+ TQ_OBJECT
public:
MainWidget(TQDomElement& dockConfig,KMdi::MdiMode mode);
virtual ~MainWidget();
@@ -50,7 +50,7 @@ private:
*/
class RestartWidget : public TDEMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
// methods
public:
RestartWidget();