summaryrefslogtreecommitdiffstats
path: root/kbounce
diff options
context:
space:
mode:
Diffstat (limited to 'kbounce')
-rw-r--r--kbounce/game.cpp8
-rw-r--r--kbounce/kbounce.cpp16
2 files changed, 12 insertions, 12 deletions
diff --git a/kbounce/game.cpp b/kbounce/game.cpp
index a223fea8..065b2657 100644
--- a/kbounce/game.cpp
+++ b/kbounce/game.cpp
@@ -406,7 +406,7 @@ JezzGame::JezzGame( const TQPixmap &background, int ballNum, TQWidget *parent, c
connect( m_clock, TQT_SIGNAL(timeout()), this, TQT_SLOT(tick()) );
m_clock->start( GAME_DELAY );
- // setup geometry
+ // setup tqgeometry
setFixedSize( m_view->size() );
}
@@ -500,7 +500,7 @@ void JezzGame::makeBlack()
}
m_field->update();
- m_view->repaint();
+ m_view->tqrepaint();
// count percent value of occupied area
int p = percent();
@@ -586,7 +586,7 @@ void JezzGame::ballCollision( Ball */*ball*/, int /*x*/, int /*y*/, int tile )
// update view
m_field->update();
- m_view->repaint();
+ m_view->tqrepaint();
// send death msg
emit died();
@@ -671,7 +671,7 @@ void JezzGame::wallFinished( Wall *wall, int tile )
}
m_field->update();
- m_view->repaint();
+ m_view->tqrepaint();
makeBlack();
}
diff --git a/kbounce/kbounce.cpp b/kbounce/kbounce.cpp
index 158786a4..2d4fe887 100644
--- a/kbounce/kbounce.cpp
+++ b/kbounce/kbounce.cpp
@@ -16,7 +16,7 @@
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <layout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kapplication.h>
#include <kaction.h>
@@ -100,7 +100,7 @@ KJezzball::KJezzball()
// create demo game
createLevel( 1 );
statusBar()->message( i18n("Press %1 to start a game!")
- .arg(m_newAction->shortcut().toString()) );
+ .tqarg(m_newAction->shortcut().toString()) );
//m_gameWidget->display( i18n("Press <Space> to start a game!") );
setFocusPolicy(TQ_StrongFocus);
@@ -228,7 +228,7 @@ void KJezzball::gameOverNow()
TQString score;
score.setNum( m_game.score );
- KMessageBox::information( this, i18n("Game Over! Score: %1").arg(score) );
+ KMessageBox::information( this, i18n("Game Over! Score: %1").tqarg(score) );
statusBar()->message( i18n("Game over. Press <Space> for a new game") );
//m_gameWidget->display( i18n("Game over. Press <Space> for a new game!") );
highscore();
@@ -461,16 +461,16 @@ void KJezzball::switchLevel()
TQString foo = TQString(
i18n("You have successfully cleared more than 75% of the board.\n") +
-i18n("%1 points: 15 points per remaining life\n").arg(m_level.lifes*15) +
-i18n("%1 points: Bonus\n").arg((m_gameWidget->percent()-75)*2*(m_game.level+5)) +
-i18n("%1 points: Total score for this level\n").arg(score) +
-i18n("On to level %1. Remember you get %2 lives this time!")).arg(m_game.level+1).arg(m_game.level+2);
+i18n("%1 points: 15 points per remaining life\n").tqarg(m_level.lifes*15) +
+i18n("%1 points: Bonus\n").tqarg((m_gameWidget->percent()-75)*2*(m_game.level+5)) +
+i18n("%1 points: Total score for this level\n").tqarg(score) +
+i18n("On to level %1. Remember you get %2 lives this time!")).tqarg(m_game.level+1).tqarg(m_game.level+2);
KMessageBox::information( this,foo );
// KMessageBox::information( this, i18n("You've completed level %1 with "
- // "a score of %2.\nGet ready for the next one!").arg(level).arg(score));
+ // "a score of %2.\nGet ready for the next one!").tqarg(level).tqarg(score));
m_game.level++;
m_levelLCD->display( m_game.level );