summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/options-dialog.cpp2
-rw-r--r--gui/options-dialog.ui64
2 files changed, 47 insertions, 19 deletions
diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp
index 8190b0f7..51cfbcc7 100644
--- a/gui/options-dialog.cpp
+++ b/gui/options-dialog.cpp
@@ -92,6 +92,8 @@ OptionsDialog::OptionsDialog(std::function<void(bool)> pause_keybindings) :
tie_setting(main.tracklogging_enabled, ui.tracklogging_enabled);
+ tie_setting(main.neck_enable, ui.neck_enable);
+
ui.disable_translation->setChecked(QSettings(OPENTRACK_ORG).value("disable-translation", false).toBool());
struct tmp
diff --git a/gui/options-dialog.ui b/gui/options-dialog.ui
index 250e2b9e..df7c80ff 100644
--- a/gui/options-dialog.ui
+++ b/gui/options-dialog.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>404</width>
- <height>597</height>
+ <height>596</height>
</rect>
</property>
<property name="windowTitle">
@@ -1520,20 +1520,30 @@
</item>
<item>
<widget class="QGroupBox" name="groupBox_12">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="title">
<string>Neck displacement</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_13">
+ <property name="spacing">
+ <number>7</number>
+ </property>
<item>
<widget class="QLabel" name="label_33">
<property name="text">
- <string>Eyes will be offset from the pivot of rotation, assumed to be the neck. Set to zeros in order to disable.
-
-It also works with relative translation disabled.</string>
+ <string>Eyes will be offset from the pivot of rotation, assumed to be the neck. Set to zeros in order to disable. It also works with relative translation disabled.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
+ <property name="margin">
+ <number>0</number>
+ </property>
</widget>
</item>
<item>
@@ -1546,7 +1556,7 @@ It also works with relative translation disabled.</string>
<number>0</number>
</property>
<property name="topMargin">
- <number>0</number>
+ <number>9</number>
</property>
<property name="rightMargin">
<number>0</number>
@@ -1557,7 +1567,7 @@ It also works with relative translation disabled.</string>
<property name="spacing">
<number>0</number>
</property>
- <item row="0" column="0">
+ <item row="1" column="0">
<widget class="QLabel" name="label_31">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
@@ -1570,7 +1580,7 @@ It also works with relative translation disabled.</string>
</property>
</widget>
</item>
- <item row="0" column="1">
+ <item row="1" column="1">
<widget class="QSpinBox" name="neck_y">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
@@ -1589,7 +1599,26 @@ It also works with relative translation disabled.</string>
</property>
</widget>
</item>
- <item row="1" column="0">
+ <item row="2" column="1">
+ <widget class="QSpinBox" name="neck_z">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
+ <horstretch>4</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ <property name="suffix">
+ <string> cm</string>
+ </property>
+ <property name="maximum">
+ <number>50</number>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0">
<widget class="QLabel" name="label_32">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
@@ -1602,22 +1631,19 @@ It also works with relative translation disabled.</string>
</property>
</widget>
</item>
- <item row="1" column="1">
- <widget class="QSpinBox" name="neck_z">
+ <item row="0" column="0">
+ <widget class="QCheckBox" name="neck_enable">
<property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
- <horstretch>4</horstretch>
+ <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
+ <horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- <property name="suffix">
- <string> cm</string>
+ <property name="styleSheet">
+ <string notr="true"/>
</property>
- <property name="maximum">
- <number>50</number>
+ <property name="text">
+ <string>Enable</string>
</property>
</widget>
</item>