Minor: When the user right-clicks on the collection tree and

selects the collection property, the collection name,
file path and number of elements will be added
to the qInfo log file.
This commit is contained in:
Laurent Trinques
2024-03-16 16:15:23 +01:00
parent e4b6b2b180
commit 0109f3bc23

View File

@@ -593,6 +593,14 @@ void ElementsCollectionWidget::dirProperties()
{
ElementCollectionItem *eci = elementCollectionItemForIndex(
m_index_at_context_menu);
//When the user right-clicks on the collection tree and
//selects the collection property, the collection name,
//file path and number of elements will be added
//to the qInfo log file.
qInfo() <<tr("Le dossier") <<(eci->localName())
<<tr("contient")<<eci->elementsChild().size()
<<tr("éléments") <<"\n"<< "Path:"
<<(static_cast<FileElementCollectionItem*>(eci)->fileSystemPath());
if (eci && eci->isDir()) {
QString txt1 = tr("Le dossier %1 contient").arg(
eci->localName());