summaryrefslogtreecommitdiffstats
path: root/kbackgammon
diff options
context:
space:
mode:
Diffstat (limited to 'kbackgammon')
-rw-r--r--kbackgammon/kbg.cpp2
-rw-r--r--kbackgammon/kbgboard.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/kbackgammon/kbg.cpp b/kbackgammon/kbg.cpp
index 696d9b7f..dcb82e72 100644
--- a/kbackgammon/kbg.cpp
+++ b/kbackgammon/kbg.cpp
@@ -88,7 +88,7 @@ KBg::KBg()
/*
* The main view is shared between the board and a small text window
*/
- panner = new TQSplitter(Qt::Vertical, this, "panner");
+ panner = new TQSplitter(TQt::Vertical, this, "panner");
board = new KBgBoardSetup(panner, "board");
status = new KBgTextView(panner, "status");
setCentralWidget(panner);
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;
}
/*