--- a/ui/EditHop.ui Wed Jun 15 10:54:04 2022 +0200 +++ b/ui/EditHop.ui Wed Jun 15 14:48:10 2022 +0200 @@ -99,7 +99,7 @@ <widget class="QLabel" name="prodLabel"> <property name="geometry"> <rect> - <x>660</x> + <x>590</x> <y>350</y> <width>141</width> <height>20</height> @@ -115,7 +115,7 @@ <widget class="QLabel" name="thtLabel"> <property name="geometry"> <rect> - <x>660</x> + <x>590</x> <y>380</y> <width>141</width> <height>20</height> @@ -178,6 +178,9 @@ <property name="accelerated"> <bool>true</bool> </property> + <property name="suffix"> + <string> Kg</string> + </property> <property name="decimals"> <number>4</number> </property> @@ -206,6 +209,9 @@ <property name="accelerated"> <bool>true</bool> </property> + <property name="suffix"> + <string> €</string> + </property> <property name="maximum"> <double>1000.000000000000000</double> </property> @@ -216,16 +222,16 @@ <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> - <widget class="NullDateEdit" name="prodEdit" native="true"> + <widget class="NullDateEdit" name="prodEdit"> <property name="geometry"> <rect> - <x>810</x> + <x>740</x> <y>350</y> <width>121</width> <height>24</height> </rect> </property> - <property name="dateTime" stdset="0"> + <property name="dateTime"> <datetime> <hour>0</hour> <minute>0</minute> @@ -235,26 +241,50 @@ <day>1</day> </datetime> </property> - <property name="displayFormat" stdset="0"> + <property name="minimumDate"> + <date> + <year>2000</year> + <month>1</month> + <day>1</day> + </date> + </property> + <property name="displayFormat"> <string>yyyy-MM-dd</string> </property> - <property name="calendarPopup" stdset="0"> + <property name="calendarPopup"> <bool>true</bool> </property> </widget> - <widget class="NullDateEdit" name="thtEdit" native="true"> + <widget class="NullDateEdit" name="thtEdit"> <property name="geometry"> <rect> - <x>810</x> + <x>740</x> <y>380</y> <width>121</width> <height>24</height> </rect> </property> - <property name="displayFormat" stdset="0"> + <property name="dateTime"> + <datetime> + <hour>0</hour> + <minute>0</minute> + <second>0</second> + <year>2000</year> + <month>1</month> + <day>1</day> + </datetime> + </property> + <property name="minimumDate"> + <date> + <year>2000</year> + <month>1</month> + <day>1</day> + </date> + </property> + <property name="displayFormat"> <string>yyyy-MM-dd</string> </property> - <property name="calendarPopup" stdset="0"> + <property name="calendarPopup"> <bool>true</bool> </property> </widget> @@ -339,6 +369,9 @@ <property name="buttonSymbols"> <enum>QAbstractSpinBox::NoButtons</enum> </property> + <property name="suffix"> + <string> €</string> + </property> <property name="maximum"> <double>100000.000000000000000</double> </property> @@ -759,6 +792,86 @@ <string>Yes</string> </property> </widget> + <widget class="QToolButton" name="prodButton1"> + <property name="geometry"> + <rect> + <x>870</x> + <y>350</y> + <width>28</width> + <height>22</height> + </rect> + </property> + <property name="toolTip"> + <string>Set the production date to today.</string> + </property> + <property name="text"> + <string>...</string> + </property> + <property name="icon"> + <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"> + <normaloff>:/icons/silk/date.png</normaloff>:/icons/silk/date.png</iconset> + </property> + </widget> + <widget class="QToolButton" name="prodButton2"> + <property name="geometry"> + <rect> + <x>902</x> + <y>350</y> + <width>28</width> + <height>22</height> + </rect> + </property> + <property name="toolTip"> + <string>Clear production date</string> + </property> + <property name="text"> + <string>...</string> + </property> + <property name="icon"> + <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"> + <normaloff>:/icons/silk/delete.png</normaloff>:/icons/silk/delete.png</iconset> + </property> + </widget> + <widget class="QToolButton" name="thtButton2"> + <property name="geometry"> + <rect> + <x>902</x> + <y>380</y> + <width>28</width> + <height>22</height> + </rect> + </property> + <property name="toolTip"> + <string>Clear tht date</string> + </property> + <property name="text"> + <string>...</string> + </property> + <property name="icon"> + <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"> + <normaloff>:/icons/silk/delete.png</normaloff>:/icons/silk/delete.png</iconset> + </property> + </widget> + <widget class="QToolButton" name="thtButton1"> + <property name="geometry"> + <rect> + <x>870</x> + <y>380</y> + <width>28</width> + <height>22</height> + </rect> + </property> + <property name="toolTip"> + <string>Set the tht date to today.</string> + </property> + <property name="text"> + <string>...</string> + </property> + <property name="icon"> + <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"> + <normaloff>:/icons/silk/date.png</normaloff>:/icons/silk/date.png</iconset> + </property> + </widget> </widget> </item> </layout> @@ -766,7 +879,7 @@ <customwidgets> <customwidget> <class>NullDateEdit</class> - <extends>QWidget</extends> + <extends>QDateEdit</extends> <header>NullDateEdit.h</header> </customwidget> </customwidgets>