convert reschedule fields to spinboxes, don't allow negative values

This commit is contained in:
Damien Elmes 2009-07-08 12:37:08 +09:00
parent 85fb576bea
commit 343b6bb59c

View file

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
@ -5,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>227</width>
<width>255</width>
<height>158</height>
</rect>
</property>
@ -31,7 +32,7 @@
</widget>
</item>
<item>
<widget class="QWidget" native="1" name="rangebox" >
<widget class="QWidget" name="rangebox" native="true">
<property name="enabled">
<bool>false</bool>
</property>
@ -48,22 +49,6 @@
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="rangeMin" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize" >
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label_3">
<property name="text">
@ -78,16 +63,6 @@
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLineEdit" name="rangeMax" >
<property name="maximumSize" >
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="label_4">
<property name="text">
@ -108,6 +83,20 @@
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="rangeMin">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="rangeMax">
<property name="maximum">
<double>99999.000000000000000</double>
</property>
</widget>
</item>
</layout>
</item>
</layout>
@ -128,8 +117,6 @@
<tabstops>
<tabstop>asNew</tabstop>
<tabstop>inRange</tabstop>
<tabstop>rangeMin</tabstop>
<tabstop>rangeMax</tabstop>
<tabstop>buttonBox</tabstop>
</tabstops>
<resources/>