85 |
85 |
86 connect(quitButton, SIGNAL(clicked()), parent, SLOT(fromInventoryWaters())); |
86 connect(quitButton, SIGNAL(clicked()), parent, SLOT(fromInventoryWaters())); |
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 InventoryWaters::refreshTable() |
95 void InventoryWaters::refreshTable() |
153 pLayout->setContentsMargins(5, 0, 5, 0); |
154 pLayout->setContentsMargins(5, 0, 5, 0); |
154 pWidget->setLayout(pLayout); |
155 pWidget->setLayout(pLayout); |
155 this->tableWaters->setCellWidget(ridx, 4, pWidget); |
156 this->tableWaters->setCellWidget(ridx, 4, pWidget); |
156 query.next(); |
157 query.next(); |
157 } |
158 } |
|
159 emit setStatus(QString(tr("Total items: %1")).arg(query.size())); |
158 } |
160 } |
159 |
161 |
160 |
162 |
161 InventoryWaters::~InventoryWaters() {} |
163 InventoryWaters::~InventoryWaters() {} |
162 |
164 |