diff -r b72c6db6890b -r 5dc02b23752f src/gui/painting/qpaintbuffer_p.h --- a/src/gui/painting/qpaintbuffer_p.h Wed Jun 23 19:07:03 2010 +0300 +++ b/src/gui/painting/qpaintbuffer_p.h Tue Jul 06 15:10:48 2010 +0300 @@ -78,6 +78,14 @@ int numFrames() const; void draw(QPainter *painter, int frame = 0) const; + + int frameStartIndex(int frame) const; + int frameEndIndex(int frame) const; + int processCommands(QPainter *painter, int begin, int end) const; +#ifndef QT_NO_DEBUG_STREAM + QString commandDescription(int command) const; +#endif + void setBoundingRect(const QRectF &rect); QRectF boundingRect() const; @@ -183,6 +191,10 @@ Cmd_DrawTiledPixmap, Cmd_SystemStateChanged, + Cmd_Translate, + Cmd_DrawStaticText, + + // new commands must be added above this line Cmd_LastCommand }; @@ -313,7 +325,7 @@ void setupTransform(QPainter *painter); virtual void process(const QPaintBufferCommand &cmd); - void draw(const QPaintBuffer &buffer, QPainter *painter, int frame); + void processCommands(const QPaintBuffer &buffer, QPainter *painter, int begin, int end); protected: QPaintBufferPrivate *d; @@ -394,6 +406,7 @@ virtual void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s); virtual void drawTextItem(const QPointF &pos, const QTextItem &ti); + virtual void drawStaticTextItem(QStaticTextItem *staticTextItem); virtual void setState(QPainterState *s); virtual uint flags() const {return QPaintEngineEx::DoNotEmulate;}