From afc67225900e0375f32048f4df27f32986704a67 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 6 Nov 2023 11:39:06 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro (cherry picked from commit 4243c1195d662a4e6e0971cef547520ece2c6673) --- kenolaba/BoardWidget.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kenolaba/BoardWidget.cpp') 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(); -- cgit v1.2.1