From 7495dabc15d5a3a2c7a1e81657227f936a59144f Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 30 Jan 2007 19:38:44 +0000 Subject: Improvements for error messages: - increase/decrease size on demand and hide progress bar or space information if required - provide close button TODO: the code is far from being finished (e. g. no queueing of pending error messages, close button looks fugly, ...), but I decided to commit the changes to prevent getting an inconsistent state in combination with other commits... svn path=/trunk/playground/utils/dolphin/; revision=628642 --- src/dolphinstatusbar.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/dolphinstatusbar.cpp') diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp index c81a01c70..4cdffec94 100644 --- a/src/dolphinstatusbar.cpp +++ b/src/dolphinstatusbar.cpp @@ -52,9 +52,12 @@ DolphinStatusBar::DolphinStatusBar(DolphinView* parent) : m_progressBar->hide(); const QSize size(m_progressBar->sizeHint()); + const int barHeight = size.height(); + m_progressBar->setMaximumWidth(200); - setMinimumHeight(size.height()); - m_messageLabel->setMinimumTextHeight(size.height()); + setMinimumHeight(barHeight); + m_messageLabel->setMinimumTextHeight(barHeight); + m_spaceInfo->setFixedHeight(barHeight); connect(parent, SIGNAL(urlChanged(const KUrl&)), this, SLOT(updateSpaceInfoContent(const KUrl&))); -- cgit v1.3