From dbeba838ea813b620ec571265c8ea417403fc81c Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 12 Apr 2011 14:45:24 +0200 Subject: 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 --- pacman-c++/mainwidget.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pacman-c++/mainwidget.h') 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 @@ class Actor; class MainWidget - : public SceneHolder + : public QWidget { Q_OBJECT @@ -51,6 +51,7 @@ private: bool m_running; QTcpSocket *m_socket; + SceneHolder *m_scene; }; #endif // MAINWIDGET_H -- cgit v1.2.3