-rw-r--r-- | noncore/games/tictac/main.cpp | 1 | ||||
-rw-r--r-- | noncore/games/tictac/tictac.cpp | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/noncore/games/tictac/main.cpp b/noncore/games/tictac/main.cpp index cfff683..9aafe4c 100644 --- a/noncore/games/tictac/main.cpp +++ b/noncore/games/tictac/main.cpp | |||
@@ -1,13 +1,12 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of an example program for Qt. This example | 4 | ** This file is part of an example program for Qt. This example |
5 | ** program may be used, distributed and modified without limitation. | 5 | ** program may be used, distributed and modified without limitation. |
6 | ** | 6 | ** |
7 | *****************************************************************************/ | 7 | *****************************************************************************/ |
8 | 8 | ||
9 | #include <qpe/qpeapplication.h> | ||
10 | #include <opie/oapplicationfactory.h> | 9 | #include <opie/oapplicationfactory.h> |
11 | #include "tictac.h" | 10 | #include "tictac.h" |
12 | 11 | ||
13 | OPIE_EXPORT_APP( OApplicationFactory<TicTacToe> ) | 12 | OPIE_EXPORT_APP( OApplicationFactory<TicTacToe> ) |
diff --git a/noncore/games/tictac/tictac.cpp b/noncore/games/tictac/tictac.cpp index 9de3b58..12ce35f 100644 --- a/noncore/games/tictac/tictac.cpp +++ b/noncore/games/tictac/tictac.cpp | |||
@@ -1,45 +1,41 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** tictac.cpp,v 1.3.8.1 2003/08/29 06:50:40 harlekin Exp | 2 | ** tictac.cpp,v 1.3.8.1 2003/08/29 06:50:40 harlekin Exp |
3 | ** | 3 | ** |
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 "tictac.h" | 11 | #include "tictac.h" |
12 | #include <qpe/qpeapplication.h> | 12 | #include <qpe/qpeapplication.h> |
13 | #include <qpainter.h> | ||
14 | #include <qdrawutil.h> | 13 | #include <qdrawutil.h> |
15 | #include <qcombobox.h> | 14 | #include <qcombobox.h> |
16 | #include <qcheckbox.h> | ||
17 | #include <qlabel.h> | 15 | #include <qlabel.h> |
18 | #include <qlayout.h> | 16 | #include <qlayout.h> |
19 | #include <stdlib.h> // rand() function | 17 | #include <stdlib.h> // rand() function |
20 | #include <qdatetime.h> // seed for rand() | ||
21 | #include <qstringlist.h> //needed for proper internationalization | ||
22 | 18 | ||
23 | 19 | ||
24 | //*************************************************************************** | 20 | //*************************************************************************** |
25 | //* TicTacButton member functions | 21 | //* TicTacButton member functions |
26 | //*************************************************************************** | 22 | //*************************************************************************** |
27 | 23 | ||
28 | // -------------------------------------------------------------------------- | 24 | // -------------------------------------------------------------------------- |
29 | // Creates a TicTacButton | 25 | // Creates a TicTacButton |
30 | // | 26 | // |
31 | 27 | ||
32 | TicTacButton::TicTacButton( QWidget *parent ) : QPushButton( parent ) | 28 | TicTacButton::TicTacButton( QWidget *parent ) : QPushButton( parent ) |
33 | { | 29 | { |
34 | t = Blank; // initial type | 30 | t = Blank; // initial type |
35 | } | 31 | } |
36 | 32 | ||
37 | // -------------------------------------------------------------------------- | 33 | // -------------------------------------------------------------------------- |
38 | // Paints TicTacButton | 34 | // Paints TicTacButton |
39 | // | 35 | // |
40 | 36 | ||
41 | void TicTacButton::drawButtonLabel( QPainter *p ) | 37 | void TicTacButton::drawButtonLabel( QPainter *p ) |
42 | { | 38 | { |
43 | QRect r = rect(); | 39 | QRect r = rect(); |
44 | p->setPen( QPen( white,2 ) ); // set fat pen | 40 | p->setPen( QPen( white,2 ) ); // set fat pen |
45 | if ( t == Circle ) { | 41 | if ( t == Circle ) { |