diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-14 11:47:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-14 18:14:46 +0200 |
commit | 1d8b1da9a68a47e6b222e8d80dc8e546e52e4dcc (patch) | |
tree | 2bbcf25de732bd8a81363f452e08520087b024b5 /proto-mouse/ftnoir_mousecontrols.ui | |
parent | a8da0d997048007d3feb2e3814ba93bbfd4d4ef8 (diff) |
proto/mouse: guard against +181 -> -179 wraparound
Always use the shorter way around.
This also adds a sensitivity param.
Issue: #370
Diffstat (limited to 'proto-mouse/ftnoir_mousecontrols.ui')
-rw-r--r-- | proto-mouse/ftnoir_mousecontrols.ui | 84 |
1 files changed, 77 insertions, 7 deletions
diff --git a/proto-mouse/ftnoir_mousecontrols.ui b/proto-mouse/ftnoir_mousecontrols.ui index b1f4bcf8..637afe2f 100644 --- a/proto-mouse/ftnoir_mousecontrols.ui +++ b/proto-mouse/ftnoir_mousecontrols.ui @@ -10,7 +10,7 @@ <x>0</x> <y>0</y> <width>280</width> - <height>106</height> + <height>280</height> </rect> </property> <property name="windowTitle"> @@ -46,6 +46,25 @@ </property> </widget> </item> + <item row="1" column="0"> + <widget class="QLabel" name="textLabel2_3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Map mouse Y to:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> <item row="0" column="1" colspan="2"> <widget class="QComboBox" name="cbxSelectMouse_X"> <property name="maximumSize"> @@ -148,8 +167,15 @@ </item> </widget> </item> - <item row="1" column="0"> - <widget class="QLabel" name="textLabel2_3"> + <item row="4" column="1"> + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="standardButtons"> + <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="textLabel2_4"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> <horstretch>0</horstretch> @@ -157,7 +183,7 @@ </sizepolicy> </property> <property name="text"> - <string>Map mouse Y to:</string> + <string>X axis sensitivity</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> @@ -168,9 +194,53 @@ </widget> </item> <item row="2" column="1"> - <widget class="QDialogButtonBox" name="buttonBox"> - <property name="standardButtons"> - <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> + <widget class="QSlider" name="sensitivity_x"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="tickInterval"> + <number>25</number> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="textLabel2_5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Y axis sensitivity</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QSlider" name="sensitivity_y"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="tickInterval"> + <number>25</number> </property> </widget> </item> |