From 606d2a2a3d53930b10c2057f96165f8cd4e6f165 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 4 Apr 2011 12:26:35 +0200 Subject: make the pacman move! --- pacman-c++/pixmapitem.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'pacman-c++/pixmapitem.cpp') 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 void PixmapItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) { - painter->drawPixmap(0, 0, m_pix, m_x, m_y, m_width, m_height); + painter->drawPixmap(QPoint(0, 0), m_pix, QRect(m_x, m_y, m_width, m_height)); } -#if 0 -bool PixmapItem::isVisible() const -{ - qDebug() << "isVisible()"; - return true; -} - -void PixmapItem::setVisible(bool v) -{ - qDebug() << "setVisible(" << v << ")"; -} -#endif - -- cgit v1.2.3