Changeset View
Changeset View
Standalone View
Standalone View
kgamerenderedobjectitem.cpp
Show All 24 Lines | |||||
25 | class KGameRenderedObjectItemPrivate : public QGraphicsPixmapItem | 25 | class KGameRenderedObjectItemPrivate : public QGraphicsPixmapItem | ||
26 | { | 26 | { | ||
27 | public: | 27 | public: | ||
28 | KGameRenderedObjectItemPrivate(KGameRenderedObjectItem* parent); | 28 | KGameRenderedObjectItemPrivate(KGameRenderedObjectItem* parent); | ||
29 | bool adjustRenderSize(); //returns whether an adjustment was made; WARNING: only call when m_primaryView != 0 | 29 | bool adjustRenderSize(); //returns whether an adjustment was made; WARNING: only call when m_primaryView != 0 | ||
30 | void adjustTransform(); | 30 | void adjustTransform(); | ||
31 | 31 | | |||
32 | //QGraphicsItem reimplementations (see comment below for why we need all of this) | 32 | //QGraphicsItem reimplementations (see comment below for why we need all of this) | ||
33 | bool contains(const QPointF& point) const Q_DECL_OVERRIDE; | 33 | bool contains(const QPointF& point) const override; | ||
34 | bool isObscuredBy(const QGraphicsItem* item) const Q_DECL_OVERRIDE; | 34 | bool isObscuredBy(const QGraphicsItem* item) const override; | ||
35 | QPainterPath opaqueArea() const Q_DECL_OVERRIDE; | 35 | QPainterPath opaqueArea() const override; | ||
36 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE; | 36 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override; | ||
37 | QPainterPath shape() const Q_DECL_OVERRIDE; | 37 | QPainterPath shape() const override; | ||
38 | public: | 38 | public: | ||
39 | KGameRenderedObjectItem* m_parent; | 39 | KGameRenderedObjectItem* m_parent; | ||
40 | QGraphicsView* m_primaryView; | 40 | QGraphicsView* m_primaryView; | ||
41 | QSize m_correctRenderSize; | 41 | QSize m_correctRenderSize; | ||
42 | QSizeF m_fixedSize; | 42 | QSizeF m_fixedSize; | ||
43 | }; | 43 | }; | ||
44 | 44 | | |||
45 | KGameRenderedObjectItemPrivate::KGameRenderedObjectItemPrivate(KGameRenderedObjectItem* parent) | 45 | KGameRenderedObjectItemPrivate::KGameRenderedObjectItemPrivate(KGameRenderedObjectItem* parent) | ||
▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines |