summaryrefslogtreecommitdiffstats
path: root/kbackgammon/kbgboard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbackgammon/kbgboard.cpp')
-rw-r--r--kbackgammon/kbgboard.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kbackgammon/kbgboard.cpp b/kbackgammon/kbgboard.cpp
index e6f34677..63d58281 100644
--- a/kbackgammon/kbgboard.cpp
+++ b/kbackgammon/kbgboard.cpp
@@ -1102,7 +1102,7 @@ void KBgBoardHome::drawDiceFrame(TQPainter *p, int col, int num,
*/
void KBgBoardCell::mousePressEvent(TQMouseEvent *e)
{
- if (e->button() == Qt::RightButton)
+ if (e->button() == TQt::RightButton)
board->showContextMenu();
else
mouseButton = e->button();
@@ -1141,7 +1141,7 @@ int KBgBoard::getShortMoveMode()
*/
void KBgBoardCell::checkAndMakeShortMove(TQMouseEvent *e, int m)
{
- if ((e->button() == Qt::LeftButton) &&
+ if ((e->button() == TQt::LeftButton) &&
(board->getShortMoveMode() == m) &&
(dragPossible()) &&
(!board->getEditMode()))
@@ -1317,7 +1317,7 @@ int KBgBoard::getPipCount(const int& w) const
*/
void KBgBoardHome::mouseDoubleClickEvent(TQMouseEvent * e)
{
- if (e->button() != Qt::LeftButton)
+ if (e->button() != TQt::LeftButton)
return;
/*
* Check whether this is the bookkeeping home...
@@ -1745,7 +1745,7 @@ KBgBoardCell::KBgBoardCell(TQWidget * parent, int numID)
stateChanged = false;
colorChanged = false;
directionChanged = false;
- mouseButton = Qt::NoButton;
+ mouseButton = TQt::NoButton;
dragInProgress = false;
connect(parent, TQT_SIGNAL(finishedUpdate()), this, TQT_SLOT(refresh()));
@@ -2150,7 +2150,7 @@ void KBgBoard::setState(const KBgStatus &st)
*/
void KBgBoardCell::mouseMoveEvent(TQMouseEvent *)
{
- if ((mouseButton == Qt::LeftButton) && dragPossible()) {
+ if ((mouseButton == TQt::LeftButton) && dragPossible()) {
dragInProgress = true;
TQRect cr(0, 0, 1+getCheckerDiameter(), 1+getCheckerDiameter());
cr.moveBottomLeft(rect().bottomLeft());
@@ -2169,7 +2169,7 @@ void KBgBoardCell::mouseMoveEvent(TQMouseEvent *)
board->storeTurn(pcs);
getPiece();
}
- mouseButton = Qt::NoButton;
+ mouseButton = TQt::NoButton;
}
/*