diff options
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 | |||
