From 5480580d5c2fa40787a70dfdb68b52216917c58b Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 3 Apr 2011 17:32:48 +0200 Subject: fix intend --- pacman-c++/pixmapitem.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'pacman-c++/pixmapitem.cpp') diff --git a/pacman-c++/pixmapitem.cpp b/pacman-c++/pixmapitem.cpp index 64ac594..9c2f941 100644 --- a/pacman-c++/pixmapitem.cpp +++ b/pacman-c++/pixmapitem.cpp @@ -2,43 +2,43 @@ #include PixmapItem::PixmapItem(const QString &fileName, QGraphicsItem *parent) - : QGraphicsObject(parent), m_x(0), m_y(0) + : QGraphicsObject(parent), m_x(0), m_y(0) { - m_pix = ":/" + fileName; - m_width = m_pix.width(); - m_height = m_pix.height(); + m_pix = ":/" + fileName; + m_width = m_pix.width(); + m_height = m_pix.height(); } PixmapItem::PixmapItem(const QString &fileName, QGraphicsScene *scene) - : QGraphicsObject(), m_x(0), m_y(0) + : QGraphicsObject(), m_x(0), m_y(0) { - m_pix = ":/" + fileName; - m_width = m_pix.width(); - m_height = m_pix.height(); - scene->addItem(this); + m_pix = ":/" + fileName; + m_width = m_pix.width(); + m_height = m_pix.height(); + scene->addItem(this); } void PixmapItem::setSprite(int x, int y, int width, int height) { - m_x = x; - m_y = y; - m_width = width; - m_height = height; + m_x = x; + m_y = y; + m_width = width; + m_height = height; } QSizeF PixmapItem::size() const { - return QSizeF(m_width, m_height); + return QSizeF(m_width, m_height); } QRectF PixmapItem::boundingRect() const { - return QRectF(QPointF(0, 0), size()); + return QRectF(QPointF(0, 0), size()); } void PixmapItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) { - painter->drawPixmap(0, 0, m_pix, m_x, m_y, m_width, m_height); + painter->drawPixmap(0, 0, m_pix, m_x, m_y, m_width, m_height); } -- cgit v1.2.3