Changed layout to three columns. Closes #297

master
Zdenek Jonak 8 years ago
parent afb2218150
commit fc2ed29d25

@ -46,6 +46,10 @@ void ShopForm::loadLast()
m_itemsModel->setTranslations(Context::instance().plugin("SHOP")->translations());
ui->actualReceipt->setModel(m_itemsModel);
ui->actualReceipt->setColumnHidden(0, true);
ui->actualReceipt->setColumnHidden(3, true);
ui->actualReceipt->setColumnHidden(4, true);
ui->actualReceipt->setColumnHidden(5, true);
ui->actualReceipt->setColumnHidden(6, true);
ui->actualReceipt->horizontalHeader()->setSectionResizeMode(1, QHeaderView::Stretch);
}

@ -153,25 +153,31 @@
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_2" native="true">
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QLabel" name="receipt">
<property name="text">
<string>Receipt</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="receiptCombo"/>
</item>
<item>
<widget class="QTableView" name="actualReceipt"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="widgetReceipt" native="true">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="receipt">
<property name="text">
<string>Receipt</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="receiptCombo"/>
</item>
<item>
<widget class="QTableView" name="actualReceipt"/>
</item>
<item>
<widget class="QWidget" name="widget_7" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_3">
@ -376,8 +382,8 @@
</layout>
</widget>
<resources>
<include location="../core/rc.qrc"/>
<include location="shoprc.qrc"/>
<include location="../core/rc.qrc"/>
</resources>
<connections/>
</ui>

Loading…
Cancel
Save