summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Alexander <wired@gentoo.org>2010-11-06 09:19:59 +0000
committerAlex Alexander <wired@gentoo.org>2010-11-06 09:19:59 +0000
commite47358d08303c953df417a716f91824cbcee78cf (patch)
treee2411ba3420e3c5ec8b08fbe549693ee080be072 /x11-libs/qt-gui/files
parentUse 2-pass mercury_compiler bootstrap to allow patching .m files; closes #341... (diff)
downloadgentoo-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.patch15
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)