[qet] [1218] Fixed the message displayed by the elements panel progress bar at first loading .

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1218
Author:   xavier
Date:     2011-03-16 23:56:46 +0100 (Wed, 16 Mar 2011)
Log Message:
-----------
Fixed the message displayed by the elements panel progress bar at first loading.

Modified Paths:
--------------
    branches/0.3/sources/elementspanelwidget.cpp

Modified: branches/0.3/sources/elementspanelwidget.cpp
===================================================================
--- branches/0.3/sources/elementspanelwidget.cpp	2011-03-15 20:06:40 UTC (rev 1217)
+++ branches/0.3/sources/elementspanelwidget.cpp	2011-03-16 22:56:46 UTC (rev 1218)
@@ -551,11 +551,11 @@
 }
 
 /**
-	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 @@
 		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()));


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/