summaryrefslogtreecommitdiffstats
path: root/kenolaba
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-06 11:39:06 +0900
committerMichele Calgaro <[email protected]>2023-11-07 11:02:18 +0900
commit4243c1195d662a4e6e0971cef547520ece2c6673 (patch)
treec2ad6162439ea0d563c5a094be51a756340b33ab /kenolaba
parent05581ab8401a949370656e30b27918af89675edc (diff)
downloadtdegames-4243c1195d662a4e6e0971cef547520ece2c6673.tar.gz
tdegames-4243c1195d662a4e6e0971cef547520ece2c6673.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kenolaba')
-rw-r--r--kenolaba/BoardWidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kenolaba/BoardWidget.cpp b/kenolaba/BoardWidget.cpp
index 456bb75c..d4178fe6 100644
--- a/kenolaba/BoardWidget.cpp
+++ b/kenolaba/BoardWidget.cpp
@@ -834,7 +834,7 @@ void BoardWidget::mousePressEvent( TQMouseEvent* pEvent )
int pos = positionOf( pEvent->x(), pEvent->y() );
int f = fieldOf(pos);
- if (pEvent->button() == Qt::RightButton) {
+ if (pEvent->button() == TQt::RightButton) {
emit rightButtonPressed(f, pEvent->globalPos());
return;
}
@@ -846,9 +846,9 @@ void BoardWidget::mousePressEvent( TQMouseEvent* pEvent )
if (editMode) {
- editColor = (pEvent->button() == Qt::MidButton) ?
+ editColor = (pEvent->button() == TQt::MidButton) ?
Board::color2 : Board::color1;
- int newColor = (pEvent->button() == Qt::MidButton) ?
+ int newColor = (pEvent->button() == TQt::MidButton) ?
Board::color2bright : Board::color1bright;
if (field[f] == Board::free) {
@@ -877,7 +877,7 @@ void BoardWidget::mousePressEvent( TQMouseEvent* pEvent )
return;
}
- startValid = isValidStart(pos, (pEvent->button() == Qt::MidButton));
+ startValid = isValidStart(pos, (pEvent->button() == TQt::MidButton));
kdDebug(12011) << "Start pos " << pos << " is valid: " << startValid << endl;
// actMove.print();
@@ -918,7 +918,7 @@ void BoardWidget::mouseMoveEvent( TQMouseEvent* pEvent )
if (!startValid) {
/* We haven't a valid move yet. Check if we are over a valid start */
- startValid = isValidStart(pos, (pEvent->button() == Qt::MidButton));
+ startValid = isValidStart(pos, (pEvent->button() == TQt::MidButton));
kdDebug(12011) << "Start pos " << pos << " is valid: " << startValid << endl;
// actMove.print();