diff --git a/src/gameboard.cpp b/src/gameboard.cpp index 3caac7b..c5a9d1f 100644 --- a/src/gameboard.cpp +++ b/src/gameboard.cpp @@ -108,7 +108,7 @@ GameBoard::redrawMap() p = new TQPainter(xpm); fnt = p->font(); fnt.setPointSize(dy * 4 / 11); - fnt.setItalic(TRUE); + fnt.setItalic(true); p->setFont(fnt); p->setBrush(TQBrush(paperColor)); p->setPen(TQt::black); @@ -136,7 +136,7 @@ GameBoard::redrawMap() } if (kpos < 0) { fnt.setPointSize(dy * 3 / 5); - fnt.setBold(TRUE); + fnt.setBold(true); p->setFont(fnt); p->setPen(TQColor(0, 0xB3, 0)); p->drawText(0, 0, w, h, TQt::AlignCenter, @@ -147,7 +147,7 @@ GameBoard::redrawMap() if (vmove.size() == 0) { /* game over */ - setEnabled(FALSE); + setEnabled(false); y = y * dy + 1; x = x * dx + 1; p->setBrush(TQBrush(TQt::red)); @@ -172,7 +172,7 @@ GameBoard::redrawMap() } } else { fnt.setPointSize(dy * 3 / 5); - fnt.setBold(TRUE); + fnt.setBold(true); p->setFont(fnt); p->setPen(TQColor(0, 0xB3, 0)); size = map_size * map_size; @@ -364,7 +364,7 @@ void GameBoard::newGame(int size) { - setEnabled(TRUE); + setEnabled(true); if (xpm != nullptr) { xpm->fill(paperColor); update(); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d915094..1327864 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -32,7 +32,7 @@ MainWindow::MainWindow(TQWidget* parent, const char* name) menuBar()->insertItem(i18n("Knight's tour"), mMenu); mGame = new TDEPopupMenu(this); - mGame->setCheckable(TRUE); + mGame->setCheckable(true); idTip = mGame->insertItem(i18n("&Highlight tips"), this, TQ_SLOT(toggleTips())); idKnight = mGame->insertItem(i18n("&Show the knight"), @@ -85,15 +85,15 @@ MainWindow::loadSettings() break; } - val = settings->readBoolEntry("/KnightTour/Tip", TRUE); + val = settings->readBoolEntry("/KnightTour/Tip", true); mGame->setItemChecked(idTip, !val); toggleTips(); - val = settings->readBoolEntry("/KnightTour/Visibility", TRUE); + val = settings->readBoolEntry("/KnightTour/Visibility", true); mGame->setItemChecked(idKnight, !val); toggleKnight(); - val = settings->readBoolEntry("/KnightTour/RandomCell", TRUE); + val = settings->readBoolEntry("/KnightTour/RandomCell", true); mGame->setItemChecked(idCell, !val); randomCell(); } @@ -129,7 +129,7 @@ MainWindow::newGame() TQCheckBox *rnd; TQButton *ok, *cancel; - dlg = new TQDialog(this, nullptr, TRUE); + dlg = new TQDialog(this, nullptr, true); dlg->setCaption(i18n("Board size")); vbox = new TQVBoxLayout(dlg);