Diffstat (limited to 'noncore/games/tictac/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/tictac/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/games/tictac/main.cpp b/noncore/games/tictac/main.cpp index f2ab334..78fb3b7 100644 --- a/noncore/games/tictac/main.cpp +++ b/noncore/games/tictac/main.cpp | |||
@@ -4,28 +4,28 @@ | |||
4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. | 4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. |
5 | ** | 5 | ** |
6 | ** This file is part of an example program for Qt. This example | 6 | ** This file is part of an example program for Qt. This example |
7 | ** program may be used, distributed and modified without limitation. | 7 | ** program may be used, distributed and modified without limitation. |
8 | ** | 8 | ** |
9 | *****************************************************************************/ | 9 | *****************************************************************************/ |
10 | 10 | ||
11 | #include <qpe/qpeapplication.h> | 11 | #include <qpe/qpeapplication.h> |
12 | #include <stdlib.h> | 12 | #include <stdlib.h> |
13 | #include "tictac.h" | 13 | #include "tictac.h" |
14 | 14 | ||
15 | 15 | ||
16 | int main( int argc, char **argv ) | 16 | int main( int argc, char **argv ) |
17 | { | 17 | { |
18 | QPEApplication a( argc, argv ); | 18 | QPEApplication a( argc, argv ); |
19 | int n = 3; | 19 | int n = 3; |
20 | if ( argc == 2 ) // get board size n | 20 | if ( argc == 2 ) // get board size n |
21 | n = atoi(argv[1]); | 21 | n = atoi(argv[1]); |
22 | if ( n < 3 || n > 10 ) { // out of range | 22 | if ( n < 3 || n > 10 ) { // out of range |
23 | qWarning( "%s: Board size must be from 3x3 to 10x10", argv[0] ); | 23 | qWarning( "%s: Board size must be from 3x3 to 10x10", argv[0] ); |
24 | return 1; | 24 | return 1; |
25 | } | 25 | } |
26 | TicTacToe ttt( n ); // create game | 26 | TicTacToe ttt( n ); // create game |
27 | a.setMainWidget( &ttt ); | 27 | a.setMainWidget( &ttt ); |
28 | ttt.setCaption("TicTac"); | 28 | ttt.setCaption( QObject::tr("TicTac") ); |
29 | ttt.show(); // show widget | 29 | ttt.show(); // show widget |
30 | return a.exec(); // go | 30 | return a.exec(); // go |
31 | } | 31 | } |