diff options
Diffstat (limited to 'kshisen/board.cpp')
-rw-r--r-- | kshisen/board.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kshisen/board.cpp b/kshisen/board.cpp index ee0d70a7..d568b825 100644 --- a/kshisen/board.cpp +++ b/kshisen/board.cpp @@ -57,8 +57,8 @@ static int size_x[5] = {14, 18, 24, 26, 30}; static int size_y[5] = { 6, 8, 12, 14, 16}; static int DELAY[5] = {1000, 750, 500, 250, 125}; -Board::Board(TQWidget *parent, const char *name) : - TQWidget(parent, name, WResizeNoErase), field(0), +Board::Board(TQWidget *tqparent, const char *name) : + TQWidget(tqparent, name, WResizeNoErase), field(0), _x_tiles(0), _y_tiles(0), _delay(125), paused(false), gravity_flag(true), _solvable_flag(true), @@ -179,7 +179,7 @@ void Board::mousePressEvent(TQMouseEvent *e) } // Mark tile - if(e->button() == LeftButton) + if(e->button() == Qt::LeftButton) { clearHighlight(); @@ -188,7 +188,7 @@ void Board::mousePressEvent(TQMouseEvent *e) } // Assist by highlighting all tiles of same type - if(e->button() == RightButton) + if(e->button() == Qt::RightButton) { int clicked_tile = getField(pos_x, pos_y); @@ -261,8 +261,8 @@ void Board::setSize(int x, int y) // set the minimum size of the scalable window const double MINIMUM_SCALE = 0.2; - int w = qRound(tiles.unscaledTileWidth() * MINIMUM_SCALE) * x_tiles(); - int h = qRound(tiles.unscaledTileHeight() * MINIMUM_SCALE) * y_tiles(); + int w = tqRound(tiles.unscaledTileWidth() * MINIMUM_SCALE) * x_tiles(); + int h = tqRound(tiles.unscaledTileHeight() * MINIMUM_SCALE) * y_tiles(); w += tiles.unscaledTileWidth(); h += tiles.unscaledTileWidth(); @@ -444,7 +444,7 @@ void Board::updateField(int x, int y, bool erase) tiles.tileWidth(), tiles.tileHeight()); - repaint(r, erase); + tqrepaint(r, erase); } void Board::paintEvent(TQPaintEvent *e) @@ -459,7 +459,7 @@ void Board::paintEvent(TQPaintEvent *e) if(paused) { p.setFont(KGlobalSettings::largeFont()); - p.drawText(rect(), Qt::AlignCenter, i18n("Game Paused")); + p.drawText(rect(), TQt::AlignCenter, i18n("Game Paused")); } else { @@ -900,7 +900,7 @@ void Board::dumpBoard() const if(tile == EMPTY) row += " --"; else - row += TQString("%1").arg(getField(x, y), 3); + row += TQString("%1").tqarg(getField(x, y), 3); } kdDebug() << row << endl; } @@ -1071,7 +1071,7 @@ bool Board::pause() return paused; } -TQSize Board::sizeHint() const +TQSize Board::tqsizeHint() const { int dpi = TQPaintDeviceMetrics(this).logicalDpiX(); if (dpi < 75) |