Diffstat (limited to 'noncore/games/tictac/tictac.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/tictac/tictac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/games/tictac/tictac.cpp b/noncore/games/tictac/tictac.cpp index 4954ba4..9de3b58 100644 --- a/noncore/games/tictac/tictac.cpp +++ b/noncore/games/tictac/tictac.cpp | |||
@@ -60,13 +60,13 @@ void TicTacButton::drawButtonLabel( QPainter *p ) | |||
60 | // signal of all buttons to the "buttonClicked()" slot. | 60 | // signal of all buttons to the "buttonClicked()" slot. |
61 | // | 61 | // |
62 | 62 | ||
63 | TicTacGameBoard::TicTacGameBoard( int n, QWidget *parent, const char *name ) | 63 | TicTacGameBoard::TicTacGameBoard( int n, QWidget *parent, const char *name ) |
64 | : QWidget( parent, name ) | 64 | : QWidget( parent, name ) |
65 | { | 65 | { |
66 | showMaximized(); | 66 | QPEApplication::showWidget( this ); |
67 | st = Init; // initial state | 67 | st = Init; // initial state |
68 | nBoard = n; | 68 | nBoard = n; |
69 | n *= n; // make square | 69 | n *= n; // make square |
70 | comp_starts = FALSE; // human starts | 70 | comp_starts = FALSE; // human starts |
71 | buttons = new TicTacButtons(n); // create real buttons | 71 | buttons = new TicTacButtons(n); // create real buttons |
72 | btArray = new TicTacArray(n); // create button model | 72 | btArray = new TicTacArray(n); // create button model |
@@ -330,13 +330,13 @@ TicTacToe::TicTacToe( QWidget *parent, const char *name, WFlags fl ) | |||
330 | quit = new QPushButton( tr( "Quit" ), this ); | 330 | quit = new QPushButton( tr( "Quit" ), this ); |
331 | connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); | 331 | connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); |
332 | QHBoxLayout * b = new QHBoxLayout; | 332 | QHBoxLayout * b = new QHBoxLayout; |
333 | l->addLayout( b ); | 333 | l->addLayout( b ); |
334 | b->addWidget( newGame ); | 334 | b->addWidget( newGame ); |
335 | b->addWidget( quit ); | 335 | b->addWidget( quit ); |
336 | showMaximized(); | 336 | QPEApplication::showWidget( this ); |
337 | newState(); | 337 | newState(); |
338 | } | 338 | } |
339 | 339 | ||
340 | 340 | ||
341 | // -------------------------------------------------------------------------- | 341 | // -------------------------------------------------------------------------- |
342 | // TicTacToe::newGameClicked() - SLOT | 342 | // TicTacToe::newGameClicked() - SLOT |