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:03:40 +0900
commitafc67225900e0375f32048f4df27f32986704a67 (patch)
tree1fe1cadfa3aef633b34a3a773d111c55f07213d0 /kenolaba
parent0195c436ad939e6c1cde8953a9bff70ccca701e5 (diff)
downloadtdegames-afc67225900e0375f32048f4df27f32986704a67.tar.gz
tdegames-afc67225900e0375f32048f4df27f32986704a67.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 4243c1195d662a4e6e0971cef547520ece2c6673)
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();