From 96899eb9f92c81957b9505ccea2d8d7b8f7987e8 Mon Sep 17 00:00:00 2001 From: xavier Date: Wed, 16 Mar 2011 22:56:46 +0000 Subject: [PATCH] Fixed the message displayed by the elements panel progress bar at first loading. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1218 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/elementspanelwidget.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sources/elementspanelwidget.cpp b/sources/elementspanelwidget.cpp index 9989a4257..42aae0cf6 100644 --- a/sources/elementspanelwidget.cpp +++ b/sources/elementspanelwidget.cpp @@ -551,11 +551,11 @@ void ElementsPanelWidget::collectionsRead() { } /** - Reflects the fact that collections being read (i.e from filesystem) in the - progress bar. + Reflects the fact that collections have been read (i.e from filesystem) in + the progress bar. */ void ElementsPanelWidget::collectionsReadFinished() { - progress_bar_ -> setFormat(tr("Chargement : %p%", "Visual rendering of elements/categories files - %p is the progress percentage")); + // we do not hide the progress bar because it will be used by updateProgressBar } /** @@ -569,6 +569,7 @@ void ElementsPanelWidget::updateProgressBar(int current, int maximum) { progress_bar_ -> setMaximum(maximum); } if (!current) { + progress_bar_ -> setFormat(tr("Chargement : %p%", "Visual rendering of elements/categories files - %p is the progress percentage")); progress_bar_ -> setVisible(true); } else if (current == provided_maximum) { QTimer::singleShot(500, progress_bar_, SLOT(hide()));