ui/EditMisc.ui

changeset 292
b6ec2e275736
parent 94
380b1331ad2e
child 385
09af9f46518f
--- a/ui/EditMisc.ui	Wed Jun 15 10:54:04 2022 +0200
+++ b/ui/EditMisc.ui	Wed Jun 15 14:48:10 2022 +0200
@@ -115,7 +115,7 @@
      <widget class="QLabel" name="thtLabel">
       <property name="geometry">
        <rect>
-        <x>660</x>
+        <x>590</x>
         <y>340</y>
         <width>141</width>
         <height>20</height>
@@ -178,14 +178,17 @@
       <property name="accelerated">
        <bool>true</bool>
       </property>
+      <property name="suffix">
+       <string> gr</string>
+      </property>
       <property name="decimals">
-       <number>3</number>
+       <number>1</number>
       </property>
       <property name="maximum">
        <double>100000.000000000000000</double>
       </property>
       <property name="singleStep">
-       <double>0.001000000000000</double>
+       <double>0.500000000000000</double>
       </property>
       <property name="stepType">
        <enum>QAbstractSpinBox::DefaultStepType</enum>
@@ -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,7 +222,7 @@
        <enum>QAbstractSpinBox::DefaultStepType</enum>
       </property>
      </widget>
-     <widget class="NullDateEdit" name="prodEdit" native="true">
+     <widget class="NullDateEdit" name="prodEdit">
       <property name="geometry">
        <rect>
         <x>140</x>
@@ -225,7 +231,17 @@
         <height>24</height>
        </rect>
       </property>
-      <property name="dateTime" 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="minimumDateTime">
        <datetime>
         <hour>0</hour>
         <minute>0</minute>
@@ -235,26 +251,46 @@
         <day>1</day>
        </datetime>
       </property>
-      <property name="displayFormat" stdset="0">
+      <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>340</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="minimumDateTime">
+       <datetime>
+        <hour>0</hour>
+        <minute>0</minute>
+        <second>0</second>
+        <year>2000</year>
+        <month>1</month>
+        <day>1</day>
+       </datetime>
+      </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 +375,12 @@
       <property name="buttonSymbols">
        <enum>QAbstractSpinBox::NoButtons</enum>
       </property>
+      <property name="suffix">
+       <string> €</string>
+      </property>
+      <property name="maximum">
+       <double>10000.000000000000000</double>
+      </property>
      </widget>
      <widget class="QLabel" name="typeLabel">
       <property name="geometry">
@@ -539,6 +581,86 @@
        <bool>true</bool>
       </property>
      </widget>
+     <widget class="QToolButton" name="prodButton2">
+      <property name="geometry">
+       <rect>
+        <x>302</x>
+        <y>340</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="prodButton1">
+      <property name="geometry">
+       <rect>
+        <x>270</x>
+        <y>340</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="thtButton2">
+      <property name="geometry">
+       <rect>
+        <x>902</x>
+        <y>340</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>340</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>
@@ -546,7 +668,7 @@
  <customwidgets>
   <customwidget>
    <class>NullDateEdit</class>
-   <extends>QWidget</extends>
+   <extends>QDateEdit</extends>
    <header>NullDateEdit.h</header>
   </customwidget>
  </customwidgets>

mercurial