src/InventorySuppliers.cpp

changeset 79
e726db72da3c
parent 66
72386c164f54
child 90
2396457a8167
--- a/src/InventorySuppliers.cpp	Mon Mar 21 11:44:51 2022 +0100
+++ b/src/InventorySuppliers.cpp	Mon Mar 21 12:08:41 2022 +0100
@@ -72,6 +72,7 @@
 
     connect(quitButton, SIGNAL(clicked()), parent, SLOT(fromInventorySuppliers()));
     connect(insertButton, SIGNAL(clicked()), this, SLOT(on_insertButton_clicked()));
+    connect(this, SIGNAL(setStatus(QString)), parent, SLOT(statusMsg(QString)));
     emit refreshTable();
 }
 
@@ -116,6 +117,7 @@
 	this->tableSuppliers->setCellWidget(ridx, 5, pWidget);
 	query.next();
     }
+    emit setStatus(QString(tr("Total items: %1")).arg(query.size()));
 }
 
 

mercurial