mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
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:
@@ -551,11 +551,11 @@ void ElementsPanelWidget::collectionsRead() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reflects the fact that collections being read (i.e from filesystem) in the
|
Reflects the fact that collections have been read (i.e from filesystem) in
|
||||||
progress bar.
|
the progress bar.
|
||||||
*/
|
*/
|
||||||
void ElementsPanelWidget::collectionsReadFinished() {
|
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);
|
progress_bar_ -> setMaximum(maximum);
|
||||||
}
|
}
|
||||||
if (!current) {
|
if (!current) {
|
||||||
|
progress_bar_ -> setFormat(tr("Chargement : %p%", "Visual rendering of elements/categories files - %p is the progress percentage"));
|
||||||
progress_bar_ -> setVisible(true);
|
progress_bar_ -> setVisible(true);
|
||||||
} else if (current == provided_maximum) {
|
} else if (current == provided_maximum) {
|
||||||
QTimer::singleShot(500, progress_bar_, SLOT(hide()));
|
QTimer::singleShot(500, progress_bar_, SLOT(hide()));
|
||||||
|
|||||||
Reference in New Issue
Block a user