diff options
| author | manuel <manuel@mausz.at> | 2011-04-12 14:45:24 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-12 14:45:24 +0200 |
| commit | dbeba838ea813b620ec571265c8ea417403fc81c (patch) | |
| tree | cf085b766ba8dad8146190dc7f438160b839feb4 /pacman-c++/mainwidget.h | |
| parent | b695f67ef718724144a3a5c4be42be373b0f691f (diff) | |
| download | foop-dbeba838ea813b620ec571265c8ea417403fc81c.tar.gz foop-dbeba838ea813b620ec571265c8ea417403fc81c.tar.bz2 foop-dbeba838ea813b620ec571265c8ea417403fc81c.zip | |
make the server a non gui application
this required a lot of reorganization:
- don't create ANY pixmaps. that requires QtGui
- don't create and QtWidgets
- thus SceneHolder is now a QGraphisScene itself
- and MainWidgets is a QWidget having SceneHolder as member variable
Diffstat (limited to 'pacman-c++/mainwidget.h')
| -rw-r--r-- | pacman-c++/mainwidget.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h index ec053a0..589377b 100644 --- a/pacman-c++/mainwidget.h +++ b/pacman-c++/mainwidget.h | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | class Actor; | 12 | class Actor; |
| 13 | 13 | ||
| 14 | class MainWidget | 14 | class MainWidget |
| 15 | : public SceneHolder | 15 | : public QWidget |
| 16 | { | 16 | { |
| 17 | Q_OBJECT | 17 | Q_OBJECT |
| 18 | 18 | ||
| @@ -51,6 +51,7 @@ private: | |||
| 51 | bool m_running; | 51 | bool m_running; |
| 52 | 52 | ||
| 53 | QTcpSocket *m_socket; | 53 | QTcpSocket *m_socket; |
| 54 | SceneHolder *m_scene; | ||
| 54 | }; | 55 | }; |
| 55 | 56 | ||
| 56 | #endif // MAINWIDGET_H | 57 | #endif // MAINWIDGET_H |
