Changeset View
Changeset View
Standalone View
Standalone View
kgamerenderedobjectitem.h
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | 64 | public: | |||
---|---|---|---|---|---|
91 | ///the current primary view. The fixed size is then reset to (-1, -1). | 91 | ///the current primary view. The fixed size is then reset to (-1, -1). | ||
92 | ///If a primary view is set, the fixed size is initialized to (1, 1). | 92 | ///If a primary view is set, the fixed size is initialized to (1, 1). | ||
93 | ///@warning While a primary view is set, avoid any manual calls to | 93 | ///@warning While a primary view is set, avoid any manual calls to | ||
94 | ///setRenderSize(). | 94 | ///setRenderSize(). | ||
95 | ///@see {Modes of operation} | 95 | ///@see {Modes of operation} | ||
96 | void setPrimaryView(QGraphicsView* view); | 96 | void setPrimaryView(QGraphicsView* view); | ||
97 | 97 | | |||
98 | //QGraphicsItem reimplementations (see comment in source file for why we need all of this) | 98 | //QGraphicsItem reimplementations (see comment in source file for why we need all of this) | ||
99 | QRectF boundingRect() const Q_DECL_OVERRIDE; | 99 | QRectF boundingRect() const override; | ||
100 | bool contains(const QPointF& point) const Q_DECL_OVERRIDE; | 100 | bool contains(const QPointF& point) const override; | ||
101 | bool isObscuredBy(const QGraphicsItem* item) const Q_DECL_OVERRIDE; | 101 | bool isObscuredBy(const QGraphicsItem* item) const override; | ||
102 | QPainterPath opaqueArea() const Q_DECL_OVERRIDE; | 102 | QPainterPath opaqueArea() const override; | ||
103 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE; | 103 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override; | ||
104 | QPainterPath shape() const Q_DECL_OVERRIDE; | 104 | QPainterPath shape() const override; | ||
105 | protected: | 105 | protected: | ||
106 | void receivePixmap(const QPixmap& pixmap) Q_DECL_OVERRIDE; | 106 | void receivePixmap(const QPixmap& pixmap) override; | ||
107 | private: | 107 | private: | ||
108 | friend class KGameRenderedObjectItemPrivate; | 108 | friend class KGameRenderedObjectItemPrivate; | ||
109 | KGameRenderedObjectItemPrivate* const d; | 109 | KGameRenderedObjectItemPrivate* const d; | ||
110 | }; | 110 | }; | ||
111 | 111 | | |||
112 | #endif // KGAMERENDEREDOBJECTITEM_H | 112 | #endif // KGAMERENDEREDOBJECTITEM_H |