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++/bonuspoint.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pacman-c++/bonuspoint.cpp') diff --git a/pacman-c++/bonuspoint.cpp b/pacman-c++/bonuspoint.cpp index a705c09..bbb26b7 100644 --- a/pacman-c++/bonuspoint.cpp +++ b/pacman-c++/bonuspoint.cpp @@ -12,6 +12,10 @@ namespace BonusPoint::BonusPoint(QGraphicsItem *parent) : PixmapItem(parent) { + /* empty object for servers */ + if (Constants::server) + return; + if (pixmap == NULL) pixmap = new QPixmap(":/bonuspoints"); setPixmap(*pixmap); -- cgit v1.2.3