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++/point.cpp | |
| 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++/point.cpp')
| -rw-r--r-- | pacman-c++/point.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp index 4f76007..35266f6 100644 --- a/pacman-c++/point.cpp +++ b/pacman-c++/point.cpp | |||
| @@ -10,6 +10,10 @@ namespace | |||
| 10 | Point::Point(QGraphicsItem *parent) | 10 | Point::Point(QGraphicsItem *parent) |
| 11 | : PixmapItem(parent) | 11 | : PixmapItem(parent) |
| 12 | { | 12 | { |
| 13 | /* empty object for servers */ | ||
| 14 | if (Constants::server) | ||
| 15 | return; | ||
| 16 | |||
| 13 | if (pixmap == NULL) | 17 | if (pixmap == NULL) |
| 14 | pixmap = new QPixmap(":/points"); | 18 | pixmap = new QPixmap(":/points"); |
| 15 | setPixmap(*pixmap); | 19 | setPixmap(*pixmap); |
