diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-09 14:23:26 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-09 14:24:09 (GMT) |
commit | 93c5eddcead6d0fa9601d3ec992086ddcc5656e9 (patch) | |
tree | 7da20c089d79313087d021c3cdc350e480d6a1ed /src/gui/itemviews/qtreeview_p.h | |
parent | e96c108e7f71f3e1bd08dc739e6ec46fe4603332 (diff) | |
download | Qt-93c5eddcead6d0fa9601d3ec992086ddcc5656e9.zip Qt-93c5eddcead6d0fa9601d3ec992086ddcc5656e9.tar.gz Qt-93c5eddcead6d0fa9601d3ec992086ddcc5656e9.tar.bz2 |
Fix compile issue
Diffstat (limited to 'src/gui/itemviews/qtreeview_p.h')
-rw-r--r-- | src/gui/itemviews/qtreeview_p.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/gui/itemviews/qtreeview_p.h b/src/gui/itemviews/qtreeview_p.h index 38f6fd3..6fb2e41 100644 --- a/src/gui/itemviews/qtreeview_p.h +++ b/src/gui/itemviews/qtreeview_p.h @@ -95,25 +95,18 @@ public: int item; QPixmap before; QPixmap after; - QTreeView *view; + QWidget *viewport; AnimatedOperation() : item(0) { setEasingCurve(QEasingCurve::InOutQuad); } int top() const { return startValue().toInt(); } - QRect rect() const { QRect rect = view->viewport()->rect(); rect.moveTop(top()); return rect; } - void updateCurrentValue(const QVariant &) { view->viewport()->update(rect()); } - void updateState(State, State state) - { - if (state == Stopped) { - before = after = QPixmap(); - view->setState(QAbstractItemView::NoState); - view->updateGeometries(); - view->viewport()->update(); - } - } + QRect rect() const { QRect rect = viewport->rect(); rect.moveTop(top()); return rect; } + void updateCurrentValue(const QVariant &) { viewport->update(rect()); } + void updateState(State, State state) { if (state == Stopped) before = after = QPixmap(); } } animatedOperation; void prepareAnimatedOperation(int item, QVariantAnimation::Direction d); void beginAnimatedOperation(); void drawAnimatedOperation(QPainter *painter) const; QPixmap renderTreeToPixmapForAnimation(const QRect &rect) const; + void _q_endAnimatedOperation(); #endif //QT_NO_ANIMATION void expand(int item, bool emitSignal); |