Minor UI changes. Added gcc switches to odb compiler.

This commit is contained in:
2017-01-07 15:19:40 +01:00
parent a82a0be883
commit 0af4db2641
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -57,6 +57,7 @@ CREATE TABLE \"Voucher\" (
"translations" : {
"CZ" : {
"name" : "Název",
"code" : "Kod",
"count" : "Počet",
"unitPrice" : "Jednotková cena",
"vatRate" : "Procento DPH",
+3
View File
@@ -60,6 +60,7 @@ void ShopForm::loadLast()
if (m_commodityModel == NULL)
{
m_commodityModel = new AutoTableModel<ShopItem>(this);
m_commodityModel->setTranslations(Context::instance().plugin("SHOP")->translations());
ui->commodityTable->setModel(m_commodityModel);
connect(ui->commodityTable->selectionModel(), &QItemSelectionModel::currentRowChanged, [this](const QModelIndex &current, const QModelIndex &){
@@ -68,6 +69,8 @@ void ShopForm::loadLast()
}
m_commodityModel->setData(srv.allSellableItems());
ui->commodityTable->horizontalHeader()->setSectionResizeMode(1, QHeaderView::Stretch);
ui->commodityTable->setColumnHidden(3, true);
}
void ShopForm::fillRaceiptCombo()