Minor UI changes. Added gcc switches to odb compiler.
This commit is contained in:
@@ -46,7 +46,7 @@ ODB_FLAGS += -I $$PWD/core
|
||||
ODB_FLAGS += -I $$PWD/qdecimal/src
|
||||
ODB_FLAGS += -I $$PWD/qdecimal/decnumber
|
||||
ODB_FLAGS += $$ODB_OTHER_INCLUDES
|
||||
ODB_FLAGS += -D __PIC__
|
||||
ODB_FLAGS += -x -std=c++11 -x -fPIC
|
||||
|
||||
win32 {
|
||||
ODB_FLAGS += -I d:/prac/odb/libodb-2.4.0
|
||||
|
||||
@@ -57,6 +57,7 @@ CREATE TABLE \"Voucher\" (
|
||||
"translations" : {
|
||||
"CZ" : {
|
||||
"name" : "Název",
|
||||
"code" : "Kod",
|
||||
"count" : "Počet",
|
||||
"unitPrice" : "Jednotková cena",
|
||||
"vatRate" : "Procento DPH",
|
||||
|
||||
@@ -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 ¤t, 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()
|
||||
|
||||
Reference in New Issue
Block a user