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