diff options
Diffstat (limited to 'kolf/objects/test/test.cpp')
-rw-r--r-- | kolf/objects/test/test.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kolf/objects/test/test.cpp b/kolf/objects/test/test.cpp index 2c3d564f..d417f552 100644 --- a/kolf/objects/test/test.cpp +++ b/kolf/objects/test/test.cpp @@ -1,9 +1,9 @@ -#include <qbrush.h> -#include <qcolor.h> -#include <qcanvas.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qslider.h> +#include <tqbrush.h> +#include <tqcolor.h> +#include <tqcanvas.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqslider.h> #include <klocale.h> #include <klibloader.h> @@ -14,11 +14,11 @@ #include "test.h" K_EXPORT_COMPONENT_FACTORY(libkolftest, TestFactory) -QObject *TestFactory::createObject (QObject * /*parent*/, const char * /*name*/, const char * /*classname*/, const QStringList & /*args*/) +TQObject *TestFactory::createObject (TQObject * /*parent*/, const char * /*name*/, const char * /*classname*/, const TQStringList & /*args*/) { return new TestObj; } -Test::Test(QCanvas *canvas) - : QCanvasEllipse(60, 40, canvas), count(0), m_switchEvery(20) +Test::Test(TQCanvas *canvas) + : TQCanvasEllipse(60, 40, canvas), count(0), m_switchEvery(20) { // force to the bottom of other objects setZ(-100000); @@ -29,7 +29,7 @@ Test::Test(QCanvas *canvas) void Test::advance(int phase) { - QCanvasEllipse::advance(phase); + TQCanvasEllipse::advance(phase); // phase is either 0 or 1, only calls with 1 should be handled if (phase == 1) @@ -39,11 +39,11 @@ void Test::advance(int phase) if (count % m_switchEvery == 0) { // random color - const QColor myColor((QRgb)(kapp->random() % 0x01000000)); + const TQColor myColor((QRgb)(kapp->random() % 0x01000000)); // set the brush, so our shape is drawn // with the random color - setBrush(QBrush(myColor)); + setBrush(TQBrush(myColor)); count = 0; } @@ -65,26 +65,26 @@ void Test::load(KConfig *cfg) setSwitchEvery(cfg->readNumEntry("switchEvery", 50)); } -TestConfig::TestConfig(Test *test, QWidget *parent) +TestConfig::TestConfig(Test *test, TQWidget *parent) : Config(parent), m_test(test) { - QVBoxLayout *layout = new QVBoxLayout(this, marginHint(), spacingHint()); + TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint()); layout->addStretch(); - layout->addWidget(new QLabel(i18n("Flash speed"), this)); + layout->addWidget(new TQLabel(i18n("Flash speed"), this)); - QHBoxLayout *hlayout = new QHBoxLayout(layout, spacingHint()); - QLabel *slow = new QLabel(i18n("Slow"), this); + TQHBoxLayout *hlayout = new TQHBoxLayout(layout, spacingHint()); + TQLabel *slow = new TQLabel(i18n("Slow"), this); hlayout->addWidget(slow); - QSlider *slider = new QSlider(1, 100, 5, 101 - m_test->switchEvery(), Qt::Horizontal, this); + TQSlider *slider = new TQSlider(1, 100, 5, 101 - m_test->switchEvery(), Qt::Horizontal, this); hlayout->addWidget(slider); - QLabel *fast = new QLabel(i18n("Fast"), this); + TQLabel *fast = new TQLabel(i18n("Fast"), this); hlayout->addWidget(fast); layout->addStretch(); - connect(slider, SIGNAL(valueChanged(int)), this, SLOT(switchEveryChanged(int))); + connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(switchEveryChanged(int))); } void TestConfig::switchEveryChanged(int news) @@ -96,7 +96,7 @@ void TestConfig::switchEveryChanged(int news) changed(); } -Config *Test::config(QWidget *parent) +Config *Test::config(TQWidget *parent) { return new TestConfig(this, parent); } |