summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/kledtest.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 /kdeui/tests/kledtest.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 'kdeui/tests/kledtest.cpp')
-rw-r--r--kdeui/tests/kledtest.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdeui/tests/kledtest.cpp b/kdeui/tests/kledtest.cpp
index 8fc082420..d68f1e366 100644
--- a/kdeui/tests/kledtest.cpp
+++ b/kdeui/tests/kledtest.cpp
@@ -1,22 +1,22 @@
#include <kapplication.h>
-#include <qwidget.h>
-#include <qtimer.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
#include <stdlib.h>
#include "kled.h"
#include "kledtest.h"
-KLedTest::KLedTest(QWidget* parent)
- : QWidget(parent, 0),
+KLedTest::KLedTest(TQWidget* parent)
+ : TQWidget(parent, 0),
LedWidth(16),
LedHeight(10),
Grid(3),
ledcolor(0),
- red(QColor("red")),
- blue(QColor("blue")),
- green(QColor("green")),
- yellow(QColor("yellow")),
+ red(TQColor("red")),
+ blue(TQColor("blue")),
+ green(TQColor("green")),
+ yellow(TQColor("yellow")),
kled_round(true) // Switch HERE between rectangle and circular leds
{
if (kled_round) {
@@ -42,9 +42,9 @@ KLedTest::KLedTest(QWidget* parent)
t_toggle.start(1000, false);
t_color.start(3500, false);
t_look.start(3500, false);
- QObject::connect(&t_toggle, SIGNAL(timeout()), l, SLOT(toggle()));
- QObject::connect(&t_color, SIGNAL(timeout()), this, SLOT(nextColor()));
- QObject::connect(&t_look, SIGNAL(timeout()), this, SLOT(nextLook()));
+ TQObject::connect(&t_toggle, TQT_SIGNAL(timeout()), l, TQT_SLOT(toggle()));
+ TQObject::connect(&t_color, TQT_SIGNAL(timeout()), this, TQT_SLOT(nextColor()));
+ TQObject::connect(&t_look, TQT_SIGNAL(timeout()), this, TQT_SLOT(nextLook()));
l->show();
resize(240,140);
}
@@ -66,7 +66,7 @@ KLedTest::KLedTest(QWidget* parent)
y+=Grid+LedHeight;
}
setFixedSize(x+Grid, y+Grid);
- connect(&timer, SIGNAL(timeout()), SLOT(timeout()));
+ connect(&timer, TQT_SIGNAL(timeout()), TQT_SLOT(timeout()));
timer.start(500);
}
}