From cd3df82730865636c92c5bb9f38a0490c0deffaa Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 31 Jan 2007 22:03:35 +0000 Subject: Queue error messages so that a currently shown error message is not replaced until the user confirmed the reading. If there are no pending error messages and a timeout has been exceeded, the currently shown error messages automatically fades out as soon as the user triggered another action. This behavior should correspond to Ellens suggestions (I hope :-)). svn path=/trunk/playground/utils/dolphin/; revision=628905 --- src/statusbarspaceinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/statusbarspaceinfo.cpp') diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp index fca7bdd0b..b61cf3f45 100644 --- a/src/statusbarspaceinfo.cpp +++ b/src/statusbarspaceinfo.cpp @@ -59,8 +59,8 @@ void StatusBarSpaceInfo::paintEvent(QPaintEvent* /* event */) { QPainter painter(this); const int barWidth = width(); - const int barTop = 2; - const int barHeight = height() - 4; + const int barTop = 1; + const int barHeight = height() - 5; QString text; @@ -98,7 +98,7 @@ void StatusBarSpaceInfo::paintEvent(QPaintEvent* /* event */) text = i18n("Getting size..."); } else { - text = ""; + text = QString::null; QTimer::singleShot(0, this, SLOT(hide())); } } -- cgit v1.3