diff options
author | Alex Alexander <wired@gentoo.org> | 2010-11-06 09:19:59 +0000 |
---|---|---|
committer | Alex Alexander <wired@gentoo.org> | 2010-11-06 09:19:59 +0000 |
commit | e47358d08303c953df417a716f91824cbcee78cf (patch) | |
tree | e2411ba3420e3c5ec8b08fbe549693ee080be072 /x11-libs/qt-gui/files | |
parent | Use 2-pass mercury_compiler bootstrap to allow patching .m files; closes #341... (diff) | |
download | gentoo-2-e47358d08303c953df417a716f91824cbcee78cf.tar.gz gentoo-2-e47358d08303c953df417a716f91824cbcee78cf.tar.bz2 gentoo-2-e47358d08303c953df417a716f91824cbcee78cf.zip |
added fix for qtreeview regression
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
Diffstat (limited to 'x11-libs/qt-gui/files')
-rw-r--r-- | x11-libs/qt-gui/files/qt-gui-4.7.0-qtreeview-regression-fix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/x11-libs/qt-gui/files/qt-gui-4.7.0-qtreeview-regression-fix.patch b/x11-libs/qt-gui/files/qt-gui-4.7.0-qtreeview-regression-fix.patch new file mode 100644 index 000000000000..711850aba8ea --- /dev/null +++ b/x11-libs/qt-gui/files/qt-gui-4.7.0-qtreeview-regression-fix.patch @@ -0,0 +1,15 @@ +diff --git a/src/gui/itemviews/qtreeview.cpp b/src/gui/itemviews/qtreeview.cpp +index b797776..40b51fe 100644 +--- a/src/gui/itemviews/qtreeview.cpp ++++ b/src/gui/itemviews/qtreeview.cpp +@@ -3435,6 +3435,10 @@ void QTreeViewPrivate::updateScrollBars() + if (!viewportSize.isValid()) + viewportSize = QSize(0, 0); + ++ if (viewItems.isEmpty()) { ++ q->doItemsLayout(); ++ } ++ + int itemsInViewport = 0; + if (uniformRowHeights) { + if (defaultItemHeight <= 0) |