From 3c8d61274240446a1f898aff3e2f30d027e985f7 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Fri, 23 Feb 2024 12:39:23 +0100 Subject: [PATCH] The Elements Collection progress bar adds the number value of all the elements counted. --- sources/ElementsCollection/elementscollectionwidget.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sources/ElementsCollection/elementscollectionwidget.cpp b/sources/ElementsCollection/elementscollectionwidget.cpp index ebee5ab25..cb7de4028 100644 --- a/sources/ElementsCollection/elementscollectionwidget.cpp +++ b/sources/ElementsCollection/elementscollectionwidget.cpp @@ -593,10 +593,10 @@ void ElementsCollectionWidget::dirProperties() { ElementCollectionItem *eci = elementCollectionItemForIndex( m_index_at_context_menu); - if (eci && eci->isDir()) { + if (eci && eci->isDir()) { QString txt1 = tr("Le dossier %1 contient").arg( eci->localName()); - QString txt2 = tr("%n élément(s), répartie(s)", + QString txt2 = tr("%n élément(s), répartie(s)", "", eci->elementsChild().size()); QString txt3 = tr("dans %n dossier(s).", @@ -613,7 +613,7 @@ void ElementsCollectionWidget::dirProperties() this, tr("Propriété du dossier %1").arg(eci->localName()), txt1 + " " + txt2 + " " + txt3 + "\n\n" + txt4 + "\n" + txt5); - } + } } /** @@ -633,7 +633,8 @@ void ElementsCollectionWidget::reload() // Force to repaint now, // else tree view will be not disabled immediately m_tree_view->repaint(); - + m_progress_bar->setFormat(QObject::tr("chargement %p% (%v sur %m)")); + QList project_list; project_list.append(m_waiting_project); m_waiting_project.clear();