summaryrefslogtreecommitdiffstats
path: root/kenolaba/BoardWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kenolaba/BoardWidget.cpp')
-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();