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()); m_itemsModel->setTranslations(Context::instance().plugin("SHOP")->translations());
ui->actualReceipt->setModel(m_itemsModel); ui->actualReceipt->setModel(m_itemsModel);
ui->actualReceipt->setColumnHidden(0, true); 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); ui->actualReceipt->horizontalHeader()->setSectionResizeMode(1, QHeaderView::Stretch);
} }

@ -153,25 +153,31 @@
</layout> </layout>
</widget> </widget>
</item> </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> </layout>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QWidget" name="widgetReceipt" native="true"> <widget class="QWidget" name="widgetReceipt" native="true">
<layout class="QVBoxLayout" name="verticalLayout_2"> <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> <item>
<widget class="QWidget" name="widget_7" native="true"> <widget class="QWidget" name="widget_7" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_3"> <layout class="QHBoxLayout" name="horizontalLayout_3">
@ -376,8 +382,8 @@
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="../core/rc.qrc"/>
<include location="shoprc.qrc"/> <include location="shoprc.qrc"/>
<include location="../core/rc.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>

Loading…
Cancel
Save