src/InventoryWaters.cpp

changeset 79
e726db72da3c
parent 73
ebd2fc719b1a
child 90
2396457a8167
equal deleted inserted replaced
78:3a6cba2dd05d 79:e726db72da3c
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

mercurial