src/InventoryEquipments.cpp

changeset 79
e726db72da3c
parent 73
ebd2fc719b1a
child 90
2396457a8167
--- a/src/InventoryEquipments.cpp	Mon Mar 21 11:44:51 2022 +0100
+++ b/src/InventoryEquipments.cpp	Mon Mar 21 12:08:41 2022 +0100
@@ -87,6 +87,7 @@
     connect(insertButton, SIGNAL(clicked()), this, SLOT(on_insertButton_clicked()));
     connect(exportButton, SIGNAL(clicked()), this, SLOT(on_exportButton_clicked()));
 //    connect(importButton, SIGNAL(clicked()), this, SLOT(on_importButton_clicked()));
+    connect(this, SIGNAL(setStatus(QString)), parent, SLOT(statusMsg(QString)));
     emit refreshTable();
 }
 
@@ -139,6 +140,7 @@
 	this->tableEquipments->setCellWidget(ridx, 4, pWidget);
 	query.next();
     }
+    emit setStatus(QString(tr("Total items: %1")).arg(query.size()));
 }
 
 

mercurial