src/InventoryMiscs.cpp

changeset 79
e726db72da3c
parent 71
5bd0d7be0167
child 90
2396457a8167
equal deleted inserted replaced
78:3a6cba2dd05d 79:e726db72da3c
85 85
86 connect(quitButton, SIGNAL(clicked()), parent, SLOT(fromInventoryMiscs())); 86 connect(quitButton, SIGNAL(clicked()), parent, SLOT(fromInventoryMiscs()));
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 InventoryMiscs::refreshTable() 95 void InventoryMiscs::refreshTable()
163 pLayout->setContentsMargins(5, 0, 5, 0); 164 pLayout->setContentsMargins(5, 0, 5, 0);
164 pWidget->setLayout(pLayout); 165 pWidget->setLayout(pLayout);
165 this->tableMiscs->setCellWidget(ridx, 5, pWidget); 166 this->tableMiscs->setCellWidget(ridx, 5, pWidget);
166 query.next(); 167 query.next();
167 } 168 }
168 169 emit setStatus(QString(tr("Total items: %1")).arg(query.size()));
169 setWindowTitle( QString("BMSapp - %1 - Inventory Miscs").arg(VERSIONSTRING) );
170 } 170 }
171 171
172 172
173 InventoryMiscs::~InventoryMiscs() {} 173 InventoryMiscs::~InventoryMiscs() {}
174 174

mercurial