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
This commit is contained in:
xavier
2011-03-16 22:56:46 +00:00
parent cf6ebf8f0f
commit 96899eb9f9

View File

@@ -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()));