]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Assure that the panels don't shrink when the view is split and the zoomslide and...
authorPeter Penz <peter.penz19@gmail.com>
Sat, 1 Aug 2009 19:30:52 +0000 (19:30 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 1 Aug 2009 19:30:52 +0000 (19:30 +0000)
BUG: 202147

svn path=/trunk/KDE/kdebase/apps/; revision=1005693

src/dolphinstatusbar.cpp

index 591a45c036ed117dfc91a7ee7fcf9126da91e444..aaa302a152ca3b135284e074886e8309fbbc1a9d 100644 (file)
@@ -217,6 +217,13 @@ void DolphinStatusBar::refresh()
 
 void DolphinStatusBar::resizeEvent(QResizeEvent* event)
 {
+    // It is important to hide the widgets before invoking
+    // QWidget::resizeEvent(), otherwise it is possible that
+    // the dock widgets are shrinked when having a small
+    // statusbar width (bug #202147).
+    m_zoomWidget->hide();
+    m_spaceInfo->hide();
+
     QWidget::resizeEvent(event);
     QMetaObject::invokeMethod(this, "assureVisibleText", Qt::QueuedConnection);
 }