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,276 +13,166 @@
<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> <widget class="QLabel" name="label_2">
<x>180</x> <property name="text">
<y>10</y> <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>
<width>241</width> </property>
<height>21</height> <property name="alignment">
</rect> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property> </property>
<property name="font"> <property name="wordWrap">
<font> <bool>true</bool>
<pointsize>11</pointsize> </property>
</font> </widget>
</property> </item>
<property name="text"> <item row="2" column="0" colspan="3">
<string>Subsurface user survey</string> <widget class="Line" name="line">
</property> <property name="orientation">
</widget> <enum>Qt::Horizontal</enum>
<widget class="QLabel" name="label_2"> </property>
<property name="geometry"> </widget>
<rect> </item>
<x>9</x> <item row="3" column="0" colspan="3">
<y>36</y> <widget class="QLabel" name="label_5">
<width>521</width> <property name="text">
<height>91</height> <string>What kind of diver are you?</string>
</rect> </property>
</property> </widget>
<property name="text"> </item>
<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> <item row="4" column="0">
</property> <widget class="QCheckBox" name="tech">
<property name="alignment"> <property name="text">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> <string>Technical diver</string>
</property> </property>
<property name="wordWrap"> </widget>
<bool>true</bool> </item>
</property> <item row="4" column="1">
</widget> <widget class="QCheckBox" name="recreational">
<widget class="QCheckBox" name="tech"> <property name="text">
<property name="geometry"> <string>Recreational diver</string>
<rect> </property>
<x>10</x> </widget>
<y>190</y> </item>
<width>161</width> <item row="4" column="2">
<height>26</height> <widget class="QCheckBox" name="planning">
</rect> <property name="text">
</property> <string>Dive planner</string>
<property name="text"> </property>
<string>Technical diver</string> </widget>
</property> </item>
</widget> <item row="5" column="0" colspan="3">
<widget class="QCheckBox" name="recreational"> <widget class="Line" name="line_2">
<property name="geometry"> <property name="orientation">
<rect> <enum>Qt::Horizontal</enum>
<x>180</x> </property>
<y>190</y> </widget>
<width>181</width> </item>
<height>26</height> <item row="6" column="0" colspan="3">
</rect> <widget class="QLabel" name="label_6">
</property> <property name="text">
<property name="text"> <string>Where are you importing data from?</string>
<string>Recreational diver</string> </property>
</property> </widget>
</widget> </item>
<widget class="QCheckBox" name="planning"> <item row="7" column="0" colspan="3">
<property name="geometry"> <widget class="QCheckBox" name="download">
<rect> <property name="text">
<x>380</x> <string>Supported dive computer</string>
<y>190</y> </property>
<width>141</width> </widget>
<height>26</height> </item>
</rect> <item row="8" column="0" colspan="3">
</property> <widget class="QCheckBox" name="divecomputer">
<property name="text"> <property name="text">
<string>Dive planner</string> <string>Other software/sources</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="download"> </item>
<property name="geometry"> <item row="9" column="0" colspan="3">
<rect> <widget class="QCheckBox" name="manual">
<x>10</x> <property name="text">
<y>270</y> <string>Manually entering dives</string>
<width>481</width> </property>
<height>26</height> </widget>
</rect> </item>
</property> <item row="10" column="0" colspan="3">
<property name="text"> <widget class="QCheckBox" name="companion">
<string>Supported dive computer</string> <property name="text">
</property> <string>Android/iPhone companion app</string>
</widget> </property>
<widget class="QCheckBox" name="divecomputer"> </widget>
<property name="geometry"> </item>
<rect> <item row="11" column="0" colspan="3">
<x>10</x> <widget class="Line" name="line_3">
<y>300</y> <property name="orientation">
<width>491</width> <enum>Qt::Horizontal</enum>
<height>26</height> </property>
</rect> </widget>
</property> </item>
<property name="text"> <item row="12" column="0" colspan="3">
<string>Other software/sources</string> <widget class="QLabel" name="label_3">
</property> <property name="text">
</widget> <string>Any suggestions? (in English)</string>
<widget class="QCheckBox" name="manual"> </property>
<property name="geometry"> </widget>
<rect> </item>
<x>10</x> <item row="13" column="0" colspan="3">
<y>330</y> <widget class="QPlainTextEdit" name="suggestions"/>
<width>501</width> </item>
<height>26</height> <item row="14" column="0" colspan="3">
</rect> <widget class="QLabel" name="label_4">
</property> <property name="text">
<property name="text"> <string>The following information about your system will also be submitted.</string>
<string>Manually entering dives</string> </property>
</property> <property name="wordWrap">
</widget> <bool>true</bool>
<widget class="QCheckBox" name="companion"> </property>
<property name="geometry"> </widget>
<rect> </item>
<x>10</x> <item row="15" column="0" colspan="3">
<y>360</y> <widget class="QPlainTextEdit" name="system">
<width>491</width> <property name="sizePolicy">
<height>26</height> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
</rect> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="text"> </sizepolicy>
<string>Android/iPhone companion app</string> </property>
</property> <property name="readOnly">
</widget> <bool>true</bool>
<widget class="QLabel" name="label_3"> </property>
<property name="geometry"> </widget>
<rect> </item>
<x>9</x> <item row="16" column="1" colspan="2">
<y>410</y> <widget class="QDialogButtonBox" name="buttonBox">
<width>501</width> <property name="focusPolicy">
<height>21</height> <enum>Qt::TabFocus</enum>
</rect> </property>
</property> <property name="orientation">
<property name="text"> <enum>Qt::Horizontal</enum>
<string>Any suggestions? (in English)</string> </property>
</property> <property name="standardButtons">
</widget> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
<widget class="QPlainTextEdit" name="suggestions"> </property>
<property name="geometry"> </widget>
<rect> </item>
<x>10</x> <item row="0" column="0" colspan="3">
<y>440</y> <widget class="QLabel" name="label">
<width>521</width> <property name="font">
<height>71</height> <font>
</rect> <pointsize>11</pointsize>
</property> </font>
</widget> </property>
<widget class="QLabel" name="label_4"> <property name="text">
<property name="geometry"> <string>Subsurface user survey</string>
<rect> </property>
<x>9</x> <property name="alignment">
<y>520</y> <set>Qt::AlignCenter</set>
<width>511</width> </property>
<height>51</height> </widget>
</rect> </item>
</property> </layout>
<property name="text">
<string>The following information about your system will also be submitted.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
<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">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<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">
<enum>Qt::TabFocus</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>10</x>
<y>160</y>
<width>451</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>What kind of diver are you?</string>
</property>
</widget>
<widget class="Line" name="line">
<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>
</widget>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>tech</tabstop> <tabstop>tech</tabstop>