┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinstatusbar.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-01-30 19:38:44 +0000
committerPeter Penz <[email protected]>2007-01-30 19:38:44 +0000
commit7495dabc15d5a3a2c7a1e81657227f936a59144f (patch)
tree7de2e26f7c8a155fb7c88fc64c2be44531b9e201 /src/dolphinstatusbar.cpp
parente1816544942d72f5228555adcd13a4ada0a712ed (diff)
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
Diffstat (limited to 'src/dolphinstatusbar.cpp')
-rw-r--r--src/dolphinstatusbar.cpp7
1 files changed, 5 insertions, 2 deletions
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&)));