summaryrefslogtreecommitdiffstats
path: root/ksokoban/PlayField.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 /ksokoban/PlayField.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 'ksokoban/PlayField.cpp')
-rw-r--r--ksokoban/PlayField.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ksokoban/PlayField.cpp b/ksokoban/PlayField.cpp
index c781e366..2b16ed44 100644
--- a/ksokoban/PlayField.cpp
+++ b/ksokoban/PlayField.cpp
@@ -700,7 +700,7 @@ PlayField::mousePressEvent(TQMouseEvent *e) {
if (!canMoveNow()) return;
if (dragInProgress_) {
- if (e->button() == Qt::LeftButton) dragObject(e->x(), e->y());
+ if (e->button() == TQt::LeftButton) dragObject(e->x(), e->y());
else stopDrag();
return;
}
@@ -711,7 +711,7 @@ PlayField::mousePressEvent(TQMouseEvent *e) {
if (x < 0 || y < 0 || x >= levelMap_->width() || y >= levelMap_->height())
return;
- if (e->button() == Qt::LeftButton && pathFinder_.canDrag(x, y)) {
+ if (e->button() == TQt::LeftButton && pathFinder_.canDrag(x, y)) {
TQPainter paint(this);
changeCursor(&sizeAllCursor);
@@ -732,7 +732,7 @@ PlayField::mousePressEvent(TQMouseEvent *e) {
Move *m;
switch (e->button()) {
- case Qt::LeftButton:
+ case TQt::LeftButton:
m = pathFinder_.search(levelMap_, x, y);
if (m != 0) {
history_->add(m);
@@ -740,11 +740,11 @@ PlayField::mousePressEvent(TQMouseEvent *e) {
startMoving(m);
}
break;
- case Qt::MidButton:
+ case TQt::MidButton:
undo();
return;
break;
- case Qt::RightButton:
+ case TQt::RightButton:
push(x, y);
break;