src/InventorySuppliers.cpp

changeset 19
c94edc758a5b
parent 12
66e10898a2a9
child 22
b52978ee7412
equal deleted inserted replaced
18:d0ca50776b0b 19:c94edc758a5b
71 btn_edit->setObjectName(QString("%1").arg(query.value(0).toString())); /* Send record with the button */ 71 btn_edit->setObjectName(QString("%1").arg(query.value(0).toString())); /* Send record with the button */
72 btn_edit->setText(tr("Edit")); 72 btn_edit->setText(tr("Edit"));
73 connect(btn_edit, SIGNAL(clicked()), this, SLOT(on_editButton_clicked())); 73 connect(btn_edit, SIGNAL(clicked()), this, SLOT(on_editButton_clicked()));
74 QHBoxLayout* pLayout = new QHBoxLayout(pWidget); 74 QHBoxLayout* pLayout = new QHBoxLayout(pWidget);
75 pLayout->addWidget(btn_edit); 75 pLayout->addWidget(btn_edit);
76 pLayout->setAlignment(Qt::AlignCenter); 76 // pLayout->setAlignment(Qt::AlignCenter);
77 pLayout->setContentsMargins(0, 0, 0, 0); 77 pLayout->setContentsMargins(5, 0, 5, 0);
78 pWidget->setLayout(pLayout); 78 pWidget->setLayout(pLayout);
79 ui->tableSuppliers->setCellWidget(ridx, 6, pWidget); 79 ui->tableSuppliers->setCellWidget(ridx, 6, pWidget);
80 query.next(); 80 query.next();
81 } 81 }
82 // qDebug() << "table ready";
83 82
84 setWindowTitle( QString("BMSapp - %1 - Inventory Suppliers").arg(VERSIONSTRING) ); 83 setWindowTitle( QString("BMSapp - %1 - Inventory Suppliers").arg(VERSIONSTRING) );
85 } 84 }
86 85
87 86

mercurial