diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2010-03-17 14:53:33 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2010-03-17 15:37:15 (GMT) |
commit | b72a2bcf8d813ec6b76eb6cc986408c75a1c96bf (patch) | |
tree | 60c5a83ae684fe2df45800494892c2232ac59a77 /tests | |
parent | e309914b0481201ed46f79f115548ebb22c19018 (diff) | |
download | Qt-b72a2bcf8d813ec6b76eb6cc986408c75a1c96bf.zip Qt-b72a2bcf8d813ec6b76eb6cc986408c75a1c96bf.tar.gz Qt-b72a2bcf8d813ec6b76eb6cc986408c75a1c96bf.tar.bz2 |
QTreeView: Remove a lot of useless and slow code.
Since commit cd2afafbc9c29393a80d415145c49eb5f439da55, we are always
doing full relayout when adding or removing rows. So there is no point
of doing the expensive incremental update of the viewItems.
This has also the nice side effect to fix QTCREATORBUG-886
(see comment in the task)
Reviewed-by: Thierry
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtreeview/tst_qtreeview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qtreeview/tst_qtreeview.cpp b/tests/auto/qtreeview/tst_qtreeview.cpp index e39cf6c..bdc0a0c 100644 --- a/tests/auto/qtreeview/tst_qtreeview.cpp +++ b/tests/auto/qtreeview/tst_qtreeview.cpp @@ -246,7 +246,7 @@ public: fetched(false), rows(0), cols(0), levels(INT_MAX), wrongIndex(false) { init(); } QtTestModel(int _rows, int _cols, QObject *parent = 0): QAbstractItemModel(parent), - rows(_rows), cols(_cols), levels(INT_MAX), wrongIndex(false) { init(); } + fetched(false), rows(_rows), cols(_cols), levels(INT_MAX), wrongIndex(false) { init(); } void init() { decorationsEnabled = false; |