summaryrefslogtreecommitdiffstats
path: root/kolf/game.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-06 11:39:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-07 11:03:40 +0900
commitafc67225900e0375f32048f4df27f32986704a67 (patch)
tree1fe1cadfa3aef633b34a3a773d111c55f07213d0 /kolf/game.cpp
parent0195c436ad939e6c1cde8953a9bff70ccca701e5 (diff)
downloadtdegames-afc67225900e0375f32048f4df27f32986704a67.tar.gz
tdegames-afc67225900e0375f32048f4df27f32986704a67.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 4243c1195d662a4e6e0971cef547520ece2c6673)
Diffstat (limited to 'kolf/game.cpp')
-rw-r--r--kolf/game.cpp16
1 files changed, 8 insertions, 8 deletions
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();
}