diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-06 11:39:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-07 11:02:18 +0900 |
commit | 4243c1195d662a4e6e0971cef547520ece2c6673 (patch) | |
tree | c2ad6162439ea0d563c5a094be51a756340b33ab /kolf | |
parent | 05581ab8401a949370656e30b27918af89675edc (diff) | |
download | tdegames-4243c1195d662a4e6e0971cef547520ece2c6673.tar.gz tdegames-4243c1195d662a4e6e0971cef547520ece2c6673.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kolf')
-rw-r--r-- | kolf/floater.cpp | 2 | ||||
-rw-r--r-- | kolf/game.cpp | 16 | ||||
-rw-r--r-- | kolf/objects/test/test.cpp | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/kolf/floater.cpp b/kolf/floater.cpp index b2a13ce6..24e9484f 100644 --- a/kolf/floater.cpp +++ b/kolf/floater.cpp @@ -262,7 +262,7 @@ FloaterConfig::FloaterConfig(Floater *floater, TQWidget *parent) m_vlayout->addWidget(new TQLabel(i18n("Moving speed"), this)); TQHBoxLayout *hlayout = new TQHBoxLayout(m_vlayout, spacingHint()); hlayout->addWidget(new TQLabel(i18n("Slow"), this)); - TQSlider *slider = new TQSlider(0, 20, 2, floater->curSpeed(), Qt::Horizontal, this); + TQSlider *slider = new TQSlider(0, 20, 2, floater->curSpeed(), TQt::Horizontal, this); hlayout->addWidget(slider); hlayout->addWidget(new TQLabel(i18n("Fast"), this)); connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(speedChanged(int))); diff --git a/kolf/game.cpp b/kolf/game.cpp index e4c298fe..e29e9932 100644 --- a/kolf/game.cpp +++ b/kolf/game.cpp @@ -249,7 +249,7 @@ Bridge::Bridge(TQRect rect, TQCanvas *canvas) { TQColor color("#92772D"); setBrush(TQBrush(color)); - setPen(Qt::NoPen); + setPen(TQt::NoPen); setZ(998); topWall = new Wall(canvas); @@ -414,7 +414,7 @@ WindmillConfig::WindmillConfig(Windmill *windmill, TQWidget *parent) TQHBoxLayout *hlayout = new TQHBoxLayout(m_vlayout, spacingHint()); hlayout->addWidget(new TQLabel(i18n("Slow"), this)); - TQSlider *slider = new TQSlider(1, 10, 1, windmill->curSpeed(), Qt::Horizontal, this); + TQSlider *slider = new TQSlider(1, 10, 1, windmill->curSpeed(), TQt::Horizontal, this); hlayout->addWidget(slider); hlayout->addWidget(new TQLabel(i18n("Fast"), this)); connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(speedChanged(int))); @@ -673,7 +673,7 @@ EllipseConfig::EllipseConfig(Ellipse *ellipse, TQWidget *parent) TQHBoxLayout *hlayout = new TQHBoxLayout(m_vlayout, spacingHint()); slow1 = new TQLabel(i18n("Slow"), this); hlayout->addWidget(slow1); - slider1 = new TQSlider(1, 100, 5, 100 - ellipse->changeEvery(), Qt::Horizontal, this); + slider1 = new TQSlider(1, 100, 5, 100 - ellipse->changeEvery(), TQt::Horizontal, this); hlayout->addWidget(slider1); fast1 = new TQLabel(i18n("Fast"), this); hlayout->addWidget(fast1); @@ -2446,7 +2446,7 @@ void KolfGame::handleMousePressEvent(TQMouseEvent *e) switch (e->button()) { // select AND move now :) - case Qt::LeftButton: + case TQt::LeftButton: { selectedItem = list.first(); movingItem = selectedItem; @@ -2473,9 +2473,9 @@ void KolfGame::handleMousePressEvent(TQMouseEvent *e) { if (m_useMouse) { - if (!inPlay && e->button() == Qt::LeftButton) + if (!inPlay && e->button() == TQt::LeftButton) puttPress(); - else if (e->button() == Qt::RightButton) + else if (e->button() == TQt::RightButton) toggleShowInfo(); } } @@ -2583,9 +2583,9 @@ void KolfGame::handleMouseReleaseEvent(TQMouseEvent *e) if (!editing && m_useMouse) { - if (!inPlay && e->button() == Qt::LeftButton) + if (!inPlay && e->button() == TQt::LeftButton) puttRelease(); - else if (e->button() == Qt::RightButton) + else if (e->button() == TQt::RightButton) toggleShowInfo(); } diff --git a/kolf/objects/test/test.cpp b/kolf/objects/test/test.cpp index 45124f9c..5a57d98a 100644 --- a/kolf/objects/test/test.cpp +++ b/kolf/objects/test/test.cpp @@ -77,7 +77,7 @@ TestConfig::TestConfig(Test *test, TQWidget *parent) TQHBoxLayout *hlayout = new TQHBoxLayout(layout, spacingHint()); TQLabel *slow = new TQLabel(i18n("Slow"), this); hlayout->addWidget(slow); - TQSlider *slider = new TQSlider(1, 100, 5, 101 - m_test->switchEvery(), Qt::Horizontal, this); + TQSlider *slider = new TQSlider(1, 100, 5, 101 - m_test->switchEvery(), TQt::Horizontal, this); hlayout->addWidget(slider); TQLabel *fast = new TQLabel(i18n("Fast"), this); hlayout->addWidget(fast); |