fix: User survey UI.

Enable window resize (Lay Out in a Grid).
Center first label and it's text.
This commit is contained in:
Martin Měřinský 2017-03-06 14:47:56 +01:00 committed by Dirk Hohndel
parent 228e2b5a77
commit 831fe3d7f9

View file

@ -13,33 +13,9 @@
<property name="windowTitle"> <property name="windowTitle">
<string>User survey</string> <string>User survey</string>
</property> </property>
<widget class="QLabel" name="label"> <layout class="QGridLayout" name="gridLayout">
<property name="geometry"> <item row="1" column="0" colspan="3">
<rect>
<x>180</x>
<y>10</y>
<width>241</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Subsurface user survey</string>
</property>
</widget>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>9</x>
<y>36</y>
<width>521</width>
<height>91</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;We would love to learn more about our users, their preferences and their usage habits. Please spare a minute to fill out this form and submit it to the Subsurface team.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;We would love to learn more about our users, their preferences and their usage habits. Please spare a minute to fill out this form and submit it to the Subsurface team.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
@ -50,129 +26,103 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="tech"> </item>
<property name="geometry"> <item row="2" column="0" colspan="3">
<rect> <widget class="Line" name="line">
<x>10</x> <property name="orientation">
<y>190</y> <enum>Qt::Horizontal</enum>
<width>161</width>
<height>26</height>
</rect>
</property> </property>
</widget>
</item>
<item row="3" column="0" colspan="3">
<widget class="QLabel" name="label_5">
<property name="text">
<string>What kind of diver are you?</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QCheckBox" name="tech">
<property name="text"> <property name="text">
<string>Technical diver</string> <string>Technical diver</string>
</property> </property>
</widget> </widget>
</item>
<item row="4" column="1">
<widget class="QCheckBox" name="recreational"> <widget class="QCheckBox" name="recreational">
<property name="geometry">
<rect>
<x>180</x>
<y>190</y>
<width>181</width>
<height>26</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Recreational diver</string> <string>Recreational diver</string>
</property> </property>
</widget> </widget>
</item>
<item row="4" column="2">
<widget class="QCheckBox" name="planning"> <widget class="QCheckBox" name="planning">
<property name="geometry">
<rect>
<x>380</x>
<y>190</y>
<width>141</width>
<height>26</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Dive planner</string> <string>Dive planner</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="download"> </item>
<property name="geometry"> <item row="5" column="0" colspan="3">
<rect> <widget class="Line" name="line_2">
<x>10</x> <property name="orientation">
<y>270</y> <enum>Qt::Horizontal</enum>
<width>481</width>
<height>26</height>
</rect>
</property> </property>
</widget>
</item>
<item row="6" column="0" colspan="3">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Where are you importing data from?</string>
</property>
</widget>
</item>
<item row="7" column="0" colspan="3">
<widget class="QCheckBox" name="download">
<property name="text"> <property name="text">
<string>Supported dive computer</string> <string>Supported dive computer</string>
</property> </property>
</widget> </widget>
</item>
<item row="8" column="0" colspan="3">
<widget class="QCheckBox" name="divecomputer"> <widget class="QCheckBox" name="divecomputer">
<property name="geometry">
<rect>
<x>10</x>
<y>300</y>
<width>491</width>
<height>26</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Other software/sources</string> <string>Other software/sources</string>
</property> </property>
</widget> </widget>
</item>
<item row="9" column="0" colspan="3">
<widget class="QCheckBox" name="manual"> <widget class="QCheckBox" name="manual">
<property name="geometry">
<rect>
<x>10</x>
<y>330</y>
<width>501</width>
<height>26</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Manually entering dives</string> <string>Manually entering dives</string>
</property> </property>
</widget> </widget>
</item>
<item row="10" column="0" colspan="3">
<widget class="QCheckBox" name="companion"> <widget class="QCheckBox" name="companion">
<property name="geometry">
<rect>
<x>10</x>
<y>360</y>
<width>491</width>
<height>26</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>Android/iPhone companion app</string> <string>Android/iPhone companion app</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label_3"> </item>
<property name="geometry"> <item row="11" column="0" colspan="3">
<rect> <widget class="Line" name="line_3">
<x>9</x> <property name="orientation">
<y>410</y> <enum>Qt::Horizontal</enum>
<width>501</width>
<height>21</height>
</rect>
</property> </property>
</widget>
</item>
<item row="12" column="0" colspan="3">
<widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
<string>Any suggestions? (in English)</string> <string>Any suggestions? (in English)</string>
</property> </property>
</widget> </widget>
<widget class="QPlainTextEdit" name="suggestions"> </item>
<property name="geometry"> <item row="13" column="0" colspan="3">
<rect> <widget class="QPlainTextEdit" name="suggestions"/>
<x>10</x> </item>
<y>440</y> <item row="14" column="0" colspan="3">
<width>521</width>
<height>71</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>9</x>
<y>520</y>
<width>511</width>
<height>51</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>The following information about your system will also be submitted.</string> <string>The following information about your system will also be submitted.</string>
</property> </property>
@ -180,15 +130,9 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item>
<item row="15" column="0" colspan="3">
<widget class="QPlainTextEdit" name="system"> <widget class="QPlainTextEdit" name="system">
<property name="geometry">
<rect>
<x>9</x>
<y>590</y>
<width>521</width>
<height>71</height>
</rect>
</property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -199,15 +143,9 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item>
<item row="16" column="1" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>350</x>
<y>670</y>
<width>176</width>
<height>31</height>
</rect>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::TabFocus</enum> <enum>Qt::TabFocus</enum>
</property> </property>
@ -218,71 +156,23 @@
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label_5"> </item>
<property name="geometry"> <item row="0" column="0" colspan="3">
<rect> <widget class="QLabel" name="label">
<x>10</x> <property name="font">
<y>160</y> <font>
<width>451</width> <pointsize>11</pointsize>
<height>21</height> </font>
</rect>
</property> </property>
<property name="text"> <property name="text">
<string>What kind of diver are you?</string> <string>Subsurface user survey</string>
</property> </property>
</widget> <property name="alignment">
<widget class="Line" name="line"> <set>Qt::AlignCenter</set>
<property name="geometry">
<rect>
<x>10</x>
<y>140</y>
<width>511</width>
<height>20</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="Line" name="line_2">
<property name="geometry">
<rect>
<x>10</x>
<y>220</y>
<width>511</width>
<height>20</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>10</x>
<y>240</y>
<width>491</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Where are you importing data from?</string>
</property>
</widget>
<widget class="Line" name="line_3">
<property name="geometry">
<rect>
<x>10</x>
<y>390</y>
<width>511</width>
<height>20</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property> </property>
</widget> </widget>
</item>
</layout>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>tech</tabstop> <tabstop>tech</tabstop>