diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2010-04-13 11:40:49 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2010-04-13 11:55:34 (GMT) |
commit | ad38e8f514323782f3806f6d7cce854d323586aa (patch) | |
tree | 4be7e83bfec51291b61135a7e661ddf57275e470 | |
parent | 6c231c82ac2d277d9593ae46c1309223b185f6fd (diff) | |
download | Qt-ad38e8f514323782f3806f6d7cce854d323586aa.zip Qt-ad38e8f514323782f3806f6d7cce854d323586aa.tar.gz Qt-ad38e8f514323782f3806f6d7cce854d323586aa.tar.bz2 |
QTreeView: remove dead code.
Not in use since p4 change 221452
Reviewed-by: Gabriel
-rw-r--r-- | src/gui/itemviews/qtreeview.cpp | 19 | ||||
-rw-r--r-- | src/gui/itemviews/qtreeview_p.h | 1 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/gui/itemviews/qtreeview.cpp b/src/gui/itemviews/qtreeview.cpp index c3ff2bd..b797776 100644 --- a/src/gui/itemviews/qtreeview.cpp +++ b/src/gui/itemviews/qtreeview.cpp @@ -3428,25 +3428,6 @@ int QTreeViewPrivate::columnAt(int x) const return header->logicalIndexAt(x); } -void QTreeViewPrivate::relayout(const QModelIndex &parent) -{ - Q_Q(QTreeView); - // do a local relayout of the items - if (parent.isValid()) { - int parentViewIndex = viewIndex(parent); - if (parentViewIndex > -1 && viewItems.at(parentViewIndex).expanded) { - collapse(parentViewIndex, false); // remove the current layout - expand(parentViewIndex, false); // do the relayout - q->updateGeometries(); - viewport->update(); - } - } else { - viewItems.clear(); - q->doItemsLayout(); - } -} - - void QTreeViewPrivate::updateScrollBars() { Q_Q(QTreeView); diff --git a/src/gui/itemviews/qtreeview_p.h b/src/gui/itemviews/qtreeview_p.h index 261af31..cbbfd0e 100644 --- a/src/gui/itemviews/qtreeview_p.h +++ b/src/gui/itemviews/qtreeview_p.h @@ -150,7 +150,6 @@ public: int columnAt(int x) const; bool hasVisibleChildren( const QModelIndex& parent) const; - void relayout(const QModelIndex &parent); bool expandOrCollapseItemAtPos(const QPoint &pos); void updateScrollBars(); |