diff options
| author | manuel <manuel@mausz.at> | 2011-04-04 12:26:35 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-04 12:26:35 +0200 |
| commit | 606d2a2a3d53930b10c2057f96165f8cd4e6f165 (patch) | |
| tree | 851cc2b5ee1da9ddb7dbe87d7913cd26d162fd62 /pacman-c++/pixmapitem.cpp | |
| parent | a35824a3319ae9c304263185c4efc449e2c2cf73 (diff) | |
| download | foop-606d2a2a3d53930b10c2057f96165f8cd4e6f165.tar.gz foop-606d2a2a3d53930b10c2057f96165f8cd4e6f165.tar.bz2 foop-606d2a2a3d53930b10c2057f96165f8cd4e6f165.zip | |
make the pacman move!
Diffstat (limited to 'pacman-c++/pixmapitem.cpp')
| -rw-r--r-- | pacman-c++/pixmapitem.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/pacman-c++/pixmapitem.cpp b/pacman-c++/pixmapitem.cpp index a977a9e..b0a81d0 100644 --- a/pacman-c++/pixmapitem.cpp +++ b/pacman-c++/pixmapitem.cpp | |||
| @@ -66,19 +66,6 @@ QRectF PixmapItem::boundingRect() const | |||
| 66 | 66 | ||
| 67 | void PixmapItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) | 67 | void PixmapItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) |
| 68 | { | 68 | { |
| 69 | painter->drawPixmap(0, 0, m_pix, m_x, m_y, m_width, m_height); | 69 | painter->drawPixmap(QPoint(0, 0), m_pix, QRect(m_x, m_y, m_width, m_height)); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | #if 0 | ||
| 73 | bool PixmapItem::isVisible() const | ||
| 74 | { | ||
| 75 | qDebug() << "isVisible()"; | ||
| 76 | return true; | ||
| 77 | } | ||
| 78 | |||
| 79 | void PixmapItem::setVisible(bool v) | ||
| 80 | { | ||
| 81 | qDebug() << "setVisible(" << v << ")"; | ||
| 82 | } | ||
| 83 | #endif | ||
| 84 | |||
