editing item

This commit is contained in:
BarsTiger
2022-08-12 19:28:56 +03:00
parent 12b0ac42b7
commit dfbf3015b3
5 changed files with 395 additions and 4 deletions

View File

@@ -295,6 +295,9 @@ QToolBox::tab {
</property>
<item>
<widget class="QStackedWidget" name="content">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="main_page">
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
@@ -1695,8 +1698,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>0</x>
<y>0</y>
<width>782</width>
<height>349</height>
<width>296</width>
<height>144</height>
</rect>
</property>
<attribute name="label">
@@ -1862,8 +1865,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>0</x>
<y>0</y>
<width>782</width>
<height>349</height>
<width>166</width>
<height>95</height>
</rect>
</property>
<attribute name="label">
@@ -1982,6 +1985,232 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</widget>
<widget class="QWidget" name="edit_item_page">
<layout class="QVBoxLayout" name="verticalLayout_19">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="topmenu_content" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="cancel_edit_button">
<property name="minimumSize">
<size>
<width>48</width>
<height>48</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>48</width>
<height>48</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="images.qrc">
<normaloff>:/img/img/cancel.png</normaloff>:/img/img/cancel.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="edit_old_item_name">
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="edit_box_item_name_label">
<property name="text">
<string>Item name</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="edit_box_item_name">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="edit_box_price_label">
<property name="text">
<string>Price</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="edit_box_price">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="prefix">
<string>$</string>
</property>
<property name="maximum">
<number>10000000</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="edit_box_item_class_label">
<property name="text">
<string>Item class</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="edit_box_item_class">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="edit_box_item_type_label">
<property name="text">
<string>Item type</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="edit_box_item_type">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="edit_box_shop_label">
<property name="text">
<string>Shop website</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="edit_box_shop">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="edit_box_image_label">
<property name="text">
<string>Image URL</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="edit_box_image">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_19">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="edit_save_button">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>Save</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>