Diffstat (limited to 'noncore/games/snake/interface.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/snake/interface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/games/snake/interface.h b/noncore/games/snake/interface.h index 454d4ee..fa1dee4 100644 --- a/noncore/games/snake/interface.h +++ b/noncore/games/snake/interface.h | |||
@@ -15,12 +15,13 @@ | |||
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include <qmainwindow.h> | 20 | #include <qmainwindow.h> |
21 | #include <qpe/qpeapplication.h> | ||
21 | #include <qcanvas.h> | 22 | #include <qcanvas.h> |
22 | #include <qlabel.h> | 23 | #include <qlabel.h> |
23 | 24 | ||
24 | #include "snake.h" | 25 | #include "snake.h" |
25 | #include "target.h" | 26 | #include "target.h" |
26 | #include "obstacle.h" | 27 | #include "obstacle.h" |
@@ -34,12 +35,14 @@ public: | |||
34 | SnakeGame(QWidget* parent=0, const char* name=0, WFlags f=0); | 35 | SnakeGame(QWidget* parent=0, const char* name=0, WFlags f=0); |
35 | ~SnakeGame(); | 36 | ~SnakeGame(); |
36 | 37 | ||
37 | void clear(); | 38 | void clear(); |
38 | void createTargets(); | 39 | void createTargets(); |
39 | 40 | ||
41 | static QString appName() { return QString::fromLatin1("snake"); } | ||
42 | |||
40 | protected: | 43 | protected: |
41 | virtual void keyPressEvent(QKeyEvent*); | 44 | virtual void keyPressEvent(QKeyEvent*); |
42 | virtual void resizeEvent(QResizeEvent *e); | 45 | virtual void resizeEvent(QResizeEvent *e); |
43 | 46 | ||
44 | signals: | 47 | signals: |
45 | void moveFaster(); | 48 | void moveFaster(); |