diff options
Diffstat (limited to 'pacman-c++/bonuspoint.cpp')
| -rw-r--r-- | pacman-c++/bonuspoint.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pacman-c++/bonuspoint.cpp b/pacman-c++/bonuspoint.cpp index efff263..e2fdba0 100644 --- a/pacman-c++/bonuspoint.cpp +++ b/pacman-c++/bonuspoint.cpp | |||
| @@ -1,14 +1,14 @@ | |||
| 1 | #include "bonuspoint.h" | 1 | #include "bonuspoint.h" |
| 2 | 2 | ||
| 3 | namespace { | 3 | namespace |
| 4 | { | ||
| 4 | QPixmap *pixmap = 0; | 5 | QPixmap *pixmap = 0; |
| 5 | } | 6 | } |
| 6 | 7 | ||
| 7 | BonusPoint::BonusPoint(QGraphicsItem *parent) | 8 | BonusPoint::BonusPoint(QGraphicsItem *parent) |
| 8 | : PixmapItem(parent) | 9 | : PixmapItem(parent) |
| 9 | { | 10 | { |
| 10 | if (pixmap == 0) { | 11 | if (pixmap == 0) |
| 11 | pixmap = new QPixmap(":/cherry"); | 12 | pixmap = new QPixmap(":/cherry"); |
| 12 | } | ||
| 13 | setPixmap(*pixmap); | 13 | setPixmap(*pixmap); |
| 14 | } | 14 | } |
