diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-20 18:26:21 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-27 11:03:54 +0900 |
| commit | bd4ee3ccc15d0776614a8435850a2eb1faf5a71f (patch) | |
| tree | c2ce8973a25d1e56e92a5a0b179693ed1f4f42ad /kolf/game.cpp | |
| parent | 3191f81874fcfdd0466f6f42beb89da6245b1a0a (diff) | |
| download | tdegames-bd4ee3ccc15d0776614a8435850a2eb1faf5a71f.tar.gz tdegames-bd4ee3ccc15d0776614a8435850a2eb1faf5a71f.zip | |
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kolf/game.cpp')
| -rw-r--r-- | kolf/game.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kolf/game.cpp b/kolf/game.cpp index 4f6b7edb..6d6022db 100644 --- a/kolf/game.cpp +++ b/kolf/game.cpp @@ -626,7 +626,7 @@ void Sign::draw(TQPainter &painter) Bridge::draw(painter); painter.setPen(TQPen(black, 1)); - TQSimpleRichText txt(m_text, kapp->font()); + TQSimpleRichText txt(m_text, tdeApp->font()); const int indent = wallPen().width() + 3; txt.setWidth(width() - 2*indent); TQColorGroup colorGroup; @@ -1120,7 +1120,7 @@ bool Bumper::collision(Ball *ball, long int /*id*/) betweenVector.setMagnitude(speed); // add some randomness so we don't go indefinetely - betweenVector.setDirection(betweenVector.direction() + deg2rad((kapp->random() % 3) - 1)); + betweenVector.setDirection(betweenVector.direction() + deg2rad((tdeApp->random() % 3) - 1)); ball->setVector(betweenVector); // for some reason, x is always switched... @@ -1222,7 +1222,7 @@ BlackHole::BlackHole(TQCanvas *canvas) m_maxSpeed = 5.0; runs = 0; - const TQColor myColor((TQRgb)(kapp->random() % 0x01000000)); + const TQColor myColor((TQRgb)(tdeApp->random() % 0x01000000)); outside = new TQCanvasEllipse(canvas); outside->setZ(z() - .001); @@ -2232,7 +2232,7 @@ KolfGame::KolfGame(ObjectList *obj, PlayerList *players, TQString filename, TQWi infoText = new TQCanvasText(course); infoText->setText(""); infoText->setColor(white); - TQFont font = kapp->font(); + TQFont font = tdeApp->font(); font.setPixelSize(12); infoText->move(15, width/2); infoText->setZ(10001); @@ -3938,7 +3938,7 @@ void KolfGame::lastHole() void KolfGame::randHole() { - int newHole = 1 + (int)((double)kapp->random() * ((double)(highestHole - 1) / (double)RAND_MAX)); + int newHole = 1 + (int)((double)tdeApp->random() * ((double)(highestHole - 1) / (double)RAND_MAX)); switchHole(newHole); } @@ -4161,7 +4161,7 @@ void KolfGame::print(KPrinter &pr) if (pr.option("kde-kolf-title") == "true") { TQString text = i18n("%1 - Hole %2; by %3").arg(holeInfo.name()).arg(curHole).arg(holeInfo.author()); - TQFont font(kapp->font()); + TQFont font(tdeApp->font()); font.setPointSize(18); TQRect rect = TQFontMetrics(font).boundingRect(text); p.setFont(font); |
