summaryrefslogtreecommitdiffstats
path: root/pacman-c++/bonuspoint.cpp
blob: efff263d8037f65e30cc12fca0a2a6afcbb1d4a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "bonuspoint.h"

namespace {
  QPixmap *pixmap = 0;
}

BonusPoint::BonusPoint(QGraphicsItem *parent)
  : PixmapItem(parent)
{
  if (pixmap == 0) {
    pixmap = new QPixmap(":/cherry");
  }
  setPixmap(*pixmap);
}