src/InventorySuppliers.cpp

changeset 64
b0d30697af67
parent 61
3fea5dde2b99
child 65
2ef981980daa
equal deleted inserted replaced
63:0484a39e58fc 64:b0d30697af67
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 #include "InventorySuppliers.h" 17 #include "InventorySuppliers.h"
18 #include "EditSupplier.h" 18 #include "EditSupplier.h"
19 #include "MainWindow.h"
19 #include "../ui/ui_InventorySuppliers.h" 20 #include "../ui/ui_InventorySuppliers.h"
20 #include "config.h" 21 #include "config.h"
21 #include "bmsapp.h" 22 #include "bmsapp.h"
22 23
23 24
26 { 27 {
27 qDebug() << "InventorySuppliers start"; 28 qDebug() << "InventorySuppliers start";
28 29
29 ui->setupUi(this); 30 ui->setupUi(this);
30 emit refreshTable(); 31 emit refreshTable();
31
32 setWindowTitle( QString("BMSapp - %1 - Inventory Suppliers").arg(VERSIONSTRING) );
33 } 32 }
34 33
35 34
36 void InventorySuppliers::refreshTable() 35 void InventorySuppliers::refreshTable()
37 { 36 {
71 pLayout->setContentsMargins(5, 0, 5, 0); 70 pLayout->setContentsMargins(5, 0, 5, 0);
72 pWidget->setLayout(pLayout); 71 pWidget->setLayout(pLayout);
73 ui->tableSuppliers->setCellWidget(ridx, 5, pWidget); 72 ui->tableSuppliers->setCellWidget(ridx, 5, pWidget);
74 query.next(); 73 query.next();
75 } 74 }
76
77 setWindowTitle( QString("BMSapp - %1 - Inventory Suppliers").arg(VERSIONSTRING) );
78 } 75 }
79 76
80 77
81 InventorySuppliers::~InventorySuppliers() 78 InventorySuppliers::~InventorySuppliers()
82 { 79 {
83 qDebug() << "InventorySuppliers done"; 80 qDebug() << "InventorySuppliers done";
84 delete ui; 81 // delete ui;
85 } 82 }
86 83
87 84
88 void InventorySuppliers::edit(int recno) 85 void InventorySuppliers::edit(int recno)
89 { 86 {
113 } 110 }
114 111
115 112
116 void InventorySuppliers::on_quitButton_clicked() 113 void InventorySuppliers::on_quitButton_clicked()
117 { 114 {
118 emit firstWindow(); 115 qDebug() << Q_FUNC_INFO;
116
117 MainWindow a;
118 a.fromInventorySuppliers();
119 } 119 }
120 120

mercurial