Minor UI changes. Added gcc switches to odb compiler.

print
Josef Rokos 8 years ago
parent a82a0be883
commit 0af4db2641

@ -46,7 +46,7 @@ ODB_FLAGS += -I $$PWD/core
ODB_FLAGS += -I $$PWD/qdecimal/src ODB_FLAGS += -I $$PWD/qdecimal/src
ODB_FLAGS += -I $$PWD/qdecimal/decnumber ODB_FLAGS += -I $$PWD/qdecimal/decnumber
ODB_FLAGS += $$ODB_OTHER_INCLUDES ODB_FLAGS += $$ODB_OTHER_INCLUDES
ODB_FLAGS += -D __PIC__ ODB_FLAGS += -x -std=c++11 -x -fPIC
win32 { win32 {
ODB_FLAGS += -I d:/prac/odb/libodb-2.4.0 ODB_FLAGS += -I d:/prac/odb/libodb-2.4.0

@ -57,6 +57,7 @@ CREATE TABLE \"Voucher\" (
"translations" : { "translations" : {
"CZ" : { "CZ" : {
"name" : "Název", "name" : "Název",
"code" : "Kod",
"count" : "Počet", "count" : "Počet",
"unitPrice" : "Jednotková cena", "unitPrice" : "Jednotková cena",
"vatRate" : "Procento DPH", "vatRate" : "Procento DPH",

@ -60,6 +60,7 @@ void ShopForm::loadLast()
if (m_commodityModel == NULL) if (m_commodityModel == NULL)
{ {
m_commodityModel = new AutoTableModel<ShopItem>(this); m_commodityModel = new AutoTableModel<ShopItem>(this);
m_commodityModel->setTranslations(Context::instance().plugin("SHOP")->translations());
ui->commodityTable->setModel(m_commodityModel); ui->commodityTable->setModel(m_commodityModel);
connect(ui->commodityTable->selectionModel(), &QItemSelectionModel::currentRowChanged, [this](const QModelIndex &current, const QModelIndex &){ connect(ui->commodityTable->selectionModel(), &QItemSelectionModel::currentRowChanged, [this](const QModelIndex &current, const QModelIndex &){
@ -68,6 +69,8 @@ void ShopForm::loadLast()
} }
m_commodityModel->setData(srv.allSellableItems()); m_commodityModel->setData(srv.allSellableItems());
ui->commodityTable->horizontalHeader()->setSectionResizeMode(1, QHeaderView::Stretch);
ui->commodityTable->setColumnHidden(3, true);
} }
void ShopForm::fillRaceiptCombo() void ShopForm::fillRaceiptCombo()

Loading…
Cancel
Save