26 #ifndef THINGPAINTABLE_H_
27 #define THINGPAINTABLE_H_
71 virtual bool resize(
const QSize& newSize);
72 virtual bool resize(quint32 newWidth,quint32 newHeight);
75 virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option=0,QWidget *widget=0) = 0;
79 virtual void paint(QPainter *painter,
const QRectF& sourceRect);
80 virtual void paint(QPainter *painter,
const QRectF& sourceRect,qint32 renderOpt);
81 virtual void paint(QPainter * painter,
const QRectF& sourceRect,
const QPointF& painterTranslate);
82 virtual void paint(QPainter * painter,
const QRectF& sourceRect,
const QPointF& painterTranslate,qint32 renderOpt);
84 virtual void paintOffscreen(QPainter *painter,
const QRect& sourceRect,
const QPoint& targetOrigin);
85 virtual void paintOffscreen(QPainter *painter,
const QRect& sourceRect,
const QRect& targetRect);
115 uint
qHash(
const QPointer<ThingPaintable>& qpt);