[Spreadsheet] fix preferences UI

- add missing layouts (Qt's designer warns too)
- add spacers to assure a compact layout on all screens
This commit is contained in:
donovaly
2021-10-03 13:44:44 +02:00
parent a65464b722
commit 3833fe21ed
+154 -160
View File
@@ -6,181 +6,175 @@
<rect>
<x>0</x>
<y>0</y>
<width>555</width>
<height>413</height>
<width>322</width>
<height>149</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Spreadsheet</string>
</property>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>531</width>
<height>161</height>
</rect>
</property>
<property name="title">
<string>Import/Export Settings</string>
</property>
<widget class="Gui::PrefLineEdit" name="quoteCharLineEdit">
<property name="geometry">
<rect>
<x>156</x>
<y>70</y>
<width>142</width>
<height>25</height>
</rect>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Character used to delimit strings, typically is single quote (') or double quote (&amp;quot;). Must be a single character.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="whatsThis">
<string/>
</property>
<property name="text">
<string>&quot;</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>ImportExportQuoteCharacter</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Spreadsheet</cstring>
</property>
</widget>
<widget class="QLabel" name="textLabel">
<property name="geometry">
<rect>
<x>13</x>
<y>33</y>
<width>137</width>
<height>17</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Delimiter Character: </string>
</property>
</widget>
<widget class="Gui::PrefLineEdit" name="escapeCharLineEdit">
<property name="geometry">
<rect>
<x>156</x>
<y>113</y>
<width>142</width>
<height>25</height>
</rect>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Escape character, typically the backslash (\), used to indicate special unprintable characters, e.g. \t = tab. Must be a single character.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>\</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>ImportExportEscapeCharacter</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Spreadsheet</cstring>
</property>
</widget>
<widget class="QLabel" name="textLabel3">
<property name="geometry">
<rect>
<x>13</x>
<y>113</y>
<width>124</width>
<height>17</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Escape Character: </string>
</property>
</widget>
<widget class="Gui::PrefComboBox" name="delimiterComboBox">
<property name="geometry">
<rect>
<x>156</x>
<y>33</y>
<width>142</width>
<height>25</height>
</rect>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Character to use as field delimiter. Default is tab, but also commonly used are commas (,) and semicolons (;). Select from the list or enter your own in the field. Must be a single character or the words &lt;span style=&quot; font-style:italic;&quot;&gt;tab&lt;/span&gt;, &lt;span style=&quot; font-style:italic;&quot;&gt;comma&lt;/span&gt;, or &lt;span style=&quot; font-style:italic;&quot;&gt;semicolon&lt;/span&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="currentText">
<string notr="true">tab</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>ImportExportDelimiter</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Spreadsheet</cstring>
</property>
<item>
<property name="text">
<string>tab</string>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Import/Export Settings</string>
</property>
</item>
<item>
<property name="text">
<string>;</string>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QLabel" name="textLabel3">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Escape Character: </string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="Gui::PrefLineEdit" name="quoteCharLineEdit">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Character used to delimit strings, typically is single quote (') or double quote (&amp;quot;). Must be a single character.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="whatsThis">
<string/>
</property>
<property name="text">
<string>&quot;</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>ImportExportQuoteCharacter</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Spreadsheet</cstring>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="textLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Delimiter Character: </string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="Gui::PrefLineEdit" name="escapeCharLineEdit">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Escape character, typically the backslash (\), used to indicate special unprintable characters, e.g. \t = tab. Must be a single character.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>\</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>ImportExportEscapeCharacter</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Spreadsheet</cstring>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="textLabel2">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Quote Character: </string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="Gui::PrefComboBox" name="delimiterComboBox">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Character to use as field delimiter. Default is tab, but also commonly used are commas (,) and semicolons (;). Select from the list or enter your own in the field. Must be a single character or the words &lt;span style=&quot; font-style:italic;&quot;&gt;tab&lt;/span&gt;, &lt;span style=&quot; font-style:italic;&quot;&gt;comma&lt;/span&gt;, or &lt;span style=&quot; font-style:italic;&quot;&gt;semicolon&lt;/span&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="currentText">
<string notr="true">tab</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>ImportExportDelimiter</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Spreadsheet</cstring>
</property>
<item>
<property name="text">
<string>tab</string>
</property>
</item>
<item>
<property name="text">
<string>;</string>
</property>
</item>
<item>
<property name="text">
<string>,</string>
</property>
</item>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</item>
<item>
<property name="text">
<string>,</string>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</item>
</widget>
<widget class="QLabel" name="textLabel2">
<property name="geometry">
<rect>
<x>13</x>
<y>70</y>
<width>117</width>
<height>17</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Quote Character: </string>
</property>
</widget>
</widget>
</spacer>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>Gui::PrefLineEdit</class>
<extends>QLineEdit</extends>
<class>Gui::PrefComboBox</class>
<extends>QComboBox</extends>
<header>Gui/PrefWidgets.h</header>
</customwidget>
<customwidget>
<class>Gui::PrefComboBox</class>
<extends>QComboBox</extends>
<class>Gui::PrefLineEdit</class>
<extends>QLineEdit</extends>
<header>Gui/PrefWidgets.h</header>
</customwidget>
</customwidgets>