From 67de9286a05b14e8d2611a2acb359b39c86eab3c Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 1 Aug 2009 19:30:52 +0000 Subject: Assure that the panels don't shrink when the view is split and the zoomslide and spaceinfo is shown in the statusbar. BUG: 202147 svn path=/trunk/KDE/kdebase/apps/; revision=1005693 --- src/dolphinstatusbar.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp index 591a45c03..aaa302a15 100644 --- a/src/dolphinstatusbar.cpp +++ b/src/dolphinstatusbar.cpp @@ -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); } -- cgit v1.3