Diffstat (limited to 'noncore/games/tetrix/qtetrix.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/tetrix/qtetrix.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/games/tetrix/qtetrix.h b/noncore/games/tetrix/qtetrix.h index cb33941..c8959c5 100644 --- a/noncore/games/tetrix/qtetrix.h +++ b/noncore/games/tetrix/qtetrix.h | |||
@@ -43,24 +43,25 @@ private: | |||
43 | void paintEvent( QPaintEvent * ); | 43 | void paintEvent( QPaintEvent * ); |
44 | void resizeEvent( QResizeEvent * ); | 44 | void resizeEvent( QResizeEvent * ); |
45 | 45 | ||
46 | int blockWidth,blockHeight; | 46 | int blockWidth,blockHeight; |
47 | int xOffset,yOffset; | 47 | int xOffset,yOffset; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | 50 | ||
51 | class QTetrix : public QMainWindow | 51 | class QTetrix : public QMainWindow |
52 | { | 52 | { |
53 | Q_OBJECT | 53 | Q_OBJECT |
54 | public: | 54 | public: |
55 | static QString appName() { return QString::fromLatin1("tetrix"); } | ||
55 | QTetrix( QWidget *parent=0, const char *name=0, WFlags f=0 ); | 56 | QTetrix( QWidget *parent=0, const char *name=0, WFlags f=0 ); |
56 | void startGame() { board->startGame(); } | 57 | void startGame() { board->startGame(); } |
57 | 58 | ||
58 | public slots: | 59 | public slots: |
59 | void gameOver(); | 60 | void gameOver(); |
60 | void quit(); | 61 | void quit(); |
61 | private: | 62 | private: |
62 | void keyPressEvent( QKeyEvent *e ) { board->keyPressEvent(e); } | 63 | void keyPressEvent( QKeyEvent *e ) { board->keyPressEvent(e); } |
63 | 64 | ||
64 | QTetrixBoard *board; | 65 | QTetrixBoard *board; |
65 | ShowNextPiece *showNext; | 66 | ShowNextPiece *showNext; |
66 | QLabel *showScore; | 67 | QLabel *showScore; |