diff options
Diffstat (limited to 'pacman-c++/block.cpp')
| -rw-r--r-- | pacman-c++/block.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pacman-c++/block.cpp b/pacman-c++/block.cpp index 4240dd4..9d57578 100644 --- a/pacman-c++/block.cpp +++ b/pacman-c++/block.cpp | |||
| @@ -6,7 +6,8 @@ | |||
| 6 | 6 | ||
| 7 | std::map<Color, QPixmap> Block::m_pixmaps; | 7 | std::map<Color, QPixmap> Block::m_pixmaps; |
| 8 | 8 | ||
| 9 | Block::Block(Color color) | 9 | Block::Block(Color color, QGraphicsItem *parent) |
| 10 | : PixmapItem(parent) | ||
| 10 | { | 11 | { |
| 11 | if (m_pixmaps.find(color) == m_pixmaps.end()) { | 12 | if (m_pixmaps.find(color) == m_pixmaps.end()) { |
| 12 | QString pixmapName = ":/" + QString("block%1").arg(color); | 13 | QString pixmapName = ":/" + QString("block%1").arg(color); |
