src/InventoryYeasts.cpp

changeset 79
e726db72da3c
parent 70
556b4202c5e7
child 90
2396457a8167
equal deleted inserted replaced
78:3a6cba2dd05d 79:e726db72da3c
85 85
86 connect(quitButton, SIGNAL(clicked()), parent, SLOT(fromInventoryYeasts())); 86 connect(quitButton, SIGNAL(clicked()), parent, SLOT(fromInventoryYeasts()));
87 connect(insertButton, SIGNAL(clicked()), this, SLOT(on_insertButton_clicked())); 87 connect(insertButton, SIGNAL(clicked()), this, SLOT(on_insertButton_clicked()));
88 connect(exportButton, SIGNAL(clicked()), this, SLOT(on_exportButton_clicked())); 88 connect(exportButton, SIGNAL(clicked()), this, SLOT(on_exportButton_clicked()));
89 // connect(importButton, SIGNAL(clicked()), this, SLOT(on_importButton_clicked())); 89 // connect(importButton, SIGNAL(clicked()), this, SLOT(on_importButton_clicked()));
90 connect(this, SIGNAL(setStatus(QString)), parent, SLOT(statusMsg(QString)));
90 emit refreshTable(); 91 emit refreshTable();
91 } 92 }
92 93
93 94
94 void InventoryYeasts::refreshTable() 95 void InventoryYeasts::refreshTable()
197 pLayout->setContentsMargins(5, 0, 5, 0); 198 pLayout->setContentsMargins(5, 0, 5, 0);
198 pWidget->setLayout(pLayout); 199 pWidget->setLayout(pLayout);
199 this->tableYeasts->setCellWidget(ridx, 10, pWidget); 200 this->tableYeasts->setCellWidget(ridx, 10, pWidget);
200 query.next(); 201 query.next();
201 } 202 }
203 emit setStatus(QString(tr("Total items: %1")).arg(query.size()));
202 } 204 }
203 205
204 206
205 InventoryYeasts::~InventoryYeasts() {} 207 InventoryYeasts::~InventoryYeasts() {}
206 208

mercurial