autoresize of the grid tab (in preferences)

preferencesAboutTextFull
Clément Fauconnier 7 years ago
parent ae1a2a5338
commit 7d35b53a68
  1. 543
      resources/forms/preferences.ui

@ -539,279 +539,266 @@
<attribute name="title"> <attribute name="title">
<string>Grid</string> <string>Grid</string>
</attribute> </attribute>
<widget class="QFrame" name="gridFrame"> <layout class="QGridLayout" name="gridLayout_17">
<property name="enabled"> <item row="0" column="0">
<bool>true</bool> <widget class="QFrame" name="gridFrame">
</property> <property name="enabled">
<property name="geometry"> <bool>true</bool>
<rect> </property>
<x>-1</x> <property name="frameShape">
<y>-1</y> <enum>QFrame::NoFrame</enum>
<width>741</width> </property>
<height>591</height> <property name="frameShadow">
</rect> <enum>QFrame::Raised</enum>
</property> </property>
<property name="frameShape"> <layout class="QGridLayout" name="gridLayout_11">
<enum>QFrame::NoFrame</enum> <item row="2" column="0">
</property> <widget class="QFrame" name="crossColorLightBackgroundFrame">
<property name="frameShadow"> <property name="frameShape">
<enum>QFrame::Raised</enum> <enum>QFrame::NoFrame</enum>
</property> </property>
<widget class="QFrame" name="darkBackgroundOpacityFrame"> <property name="frameShadow">
<property name="geometry"> <enum>QFrame::Raised</enum>
<rect> </property>
<x>0</x> <layout class="QHBoxLayout" name="crossColorLightBackgroundLayout">
<y>90</y> <item>
<width>741</width> <widget class="QLabel" name="crossColorLightBackgroundLabel">
<height>52</height> <property name="text">
</rect> <string>On Light Background</string>
</property> </property>
<property name="frameShape"> </widget>
<enum>QFrame::NoFrame</enum> </item>
</property> <item>
<property name="frameShadow"> <spacer name="horizontalSpacer_7">
<enum>QFrame::Raised</enum> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
<layout class="QHBoxLayout" name="horizontalLayout_8"> </property>
<item> <property name="sizeHint" stdset="0">
<spacer name="wSpacer_2"> <size>
<property name="orientation"> <width>40</width>
<enum>Qt::Horizontal</enum> <height>20</height>
</property> </size>
<property name="sizeHint" stdset="0"> </property>
<size> </spacer>
<width>154</width> </item>
<height>20</height> <item>
</size> <widget class="UBColorPicker" name="crossColorLightBackgroundColorPicker">
</property> <property name="minimumSize">
</spacer> <size>
</item> <width>32</width>
<item> <height>32</height>
<widget class="QLabel" name="darkBackgroundOpacityLabel"> </size>
<property name="text"> </property>
<string>Opacity</string> <property name="frameShape">
</property> <enum>QFrame::StyledPanel</enum>
</widget> </property>
</item> <property name="frameShadow">
<item> <enum>QFrame::Raised</enum>
<widget class="QSlider" name="darkBackgroundOpacitySlider"> </property>
<property name="minimum"> </widget>
<number>20</number> </item>
</property> </layout>
<property name="maximum"> </widget>
<number>100</number> </item>
</property> <item row="5" column="0">
<property name="value"> <widget class="QFrame" name="darkBackgroundOpacityFrame">
<number>50</number> <property name="frameShape">
</property> <enum>QFrame::NoFrame</enum>
<property name="orientation"> </property>
<enum>Qt::Horizontal</enum> <property name="frameShadow">
</property> <enum>QFrame::Raised</enum>
<property name="tickPosition"> </property>
<enum>QSlider::TicksAbove</enum> <layout class="QHBoxLayout" name="horizontalLayout_8">
</property> <item>
<property name="tickInterval"> <spacer name="wSpacer_2">
<number>20</number> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
</widget> </property>
</item> <property name="sizeHint" stdset="0">
<item> <size>
<spacer name="eSpacer_2"> <width>154</width>
<property name="orientation"> <height>20</height>
<enum>Qt::Horizontal</enum> </size>
</property> </property>
<property name="sizeHint" stdset="0"> </spacer>
<size> </item>
<width>156</width> <item>
<height>20</height> <widget class="QLabel" name="darkBackgroundOpacityLabel">
</size> <property name="text">
</property> <string>Opacity</string>
</spacer> </property>
</item> </widget>
</layout> </item>
</widget> <item>
<widget class="QFrame" name="crossColorDarkBackgroundFrame"> <widget class="QSlider" name="darkBackgroundOpacitySlider">
<property name="geometry"> <property name="minimum">
<rect> <number>20</number>
<x>250</x> </property>
<y>30</y> <property name="maximum">
<width>241</width> <number>100</number>
<height>50</height> </property>
</rect> <property name="value">
</property> <number>50</number>
<property name="frameShape"> </property>
<enum>QFrame::NoFrame</enum> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
<property name="frameShadow"> </property>
<enum>QFrame::Raised</enum> <property name="tickPosition">
</property> <enum>QSlider::TicksAbove</enum>
<layout class="QHBoxLayout" name="crossColorDarkBackgroundLayout"> </property>
<item> <property name="tickInterval">
<widget class="QLabel" name="crossColorDarkBackgroundLabel"> <number>20</number>
<property name="text"> </property>
<string>On Dark Background</string> </widget>
</property> </item>
</widget> <item>
</item> <spacer name="eSpacer_2">
<item> <property name="orientation">
<spacer name="horizontalSpacer_8"> <enum>Qt::Horizontal</enum>
<property name="orientation"> </property>
<enum>Qt::Horizontal</enum> <property name="sizeHint" stdset="0">
</property> <size>
<property name="sizeHint" stdset="0"> <width>156</width>
<size> <height>20</height>
<width>40</width> </size>
<height>20</height> </property>
</size> </spacer>
</property> </item>
</spacer> </layout>
</item> </widget>
<item> </item>
<widget class="UBColorPicker" name="crossColorDarkBackgroundColorPicker"> <item row="4" column="0">
<property name="minimumSize"> <widget class="QFrame" name="crossColorDarkBackgroundFrame">
<size> <property name="frameShape">
<width>32</width> <enum>QFrame::NoFrame</enum>
<height>32</height> </property>
</size> <property name="frameShadow">
</property> <enum>QFrame::Raised</enum>
<property name="frameShape"> </property>
<enum>QFrame::StyledPanel</enum> <layout class="QHBoxLayout" name="crossColorDarkBackgroundLayout">
</property> <item>
<property name="frameShadow"> <widget class="QLabel" name="crossColorDarkBackgroundLabel">
<enum>QFrame::Raised</enum> <property name="text">
</property> <string>On Dark Background</string>
</widget> </property>
</item> </widget>
</layout> </item>
</widget> <item>
<widget class="QFrame" name="lightBackgroundOpacityFrame"> <spacer name="horizontalSpacer_8">
<property name="geometry"> <property name="orientation">
<rect> <enum>Qt::Horizontal</enum>
<x>0</x> </property>
<y>210</y> <property name="sizeHint" stdset="0">
<width>741</width> <size>
<height>52</height> <width>40</width>
</rect> <height>20</height>
</property> </size>
<property name="frameShape"> </property>
<enum>QFrame::NoFrame</enum> </spacer>
</property> </item>
<property name="frameShadow"> <item>
<enum>QFrame::Raised</enum> <widget class="UBColorPicker" name="crossColorDarkBackgroundColorPicker">
</property> <property name="minimumSize">
<layout class="QHBoxLayout" name="horizontalLayout_10"> <size>
<item> <width>32</width>
<spacer name="wSpacer_3"> <height>32</height>
<property name="orientation"> </size>
<enum>Qt::Horizontal</enum> </property>
</property> <property name="frameShape">
<property name="sizeHint" stdset="0"> <enum>QFrame::StyledPanel</enum>
<size> </property>
<width>154</width> <property name="frameShadow">
<height>20</height> <enum>QFrame::Raised</enum>
</size> </property>
</property> </widget>
</spacer> </item>
</item> </layout>
<item> </widget>
<widget class="QLabel" name="lightBackgroundOpacityLabel"> </item>
<property name="text"> <item row="3" column="0">
<string>Opacity</string> <widget class="QFrame" name="lightBackgroundOpacityFrame">
</property> <property name="frameShape">
</widget> <enum>QFrame::NoFrame</enum>
</item> </property>
<item> <property name="frameShadow">
<widget class="QSlider" name="lightBackgroundOpacitySlider"> <enum>QFrame::Raised</enum>
<property name="minimum"> </property>
<number>20</number> <layout class="QHBoxLayout" name="horizontalLayout_10">
</property> <item>
<property name="maximum"> <spacer name="wSpacer_3">
<number>100</number> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
<property name="value"> </property>
<number>50</number> <property name="sizeHint" stdset="0">
</property> <size>
<property name="orientation"> <width>154</width>
<enum>Qt::Horizontal</enum> <height>20</height>
</property> </size>
<property name="tickPosition"> </property>
<enum>QSlider::TicksAbove</enum> </spacer>
</property> </item>
<property name="tickInterval"> <item>
<number>20</number> <widget class="QLabel" name="lightBackgroundOpacityLabel">
</property> <property name="text">
</widget> <string>Opacity</string>
</item> </property>
<item> </widget>
<spacer name="eSpacer_3"> </item>
<property name="orientation"> <item>
<enum>Qt::Horizontal</enum> <widget class="QSlider" name="lightBackgroundOpacitySlider">
</property> <property name="minimum">
<property name="sizeHint" stdset="0"> <number>20</number>
<size> </property>
<width>156</width> <property name="maximum">
<height>20</height> <number>100</number>
</size> </property>
</property> <property name="value">
</spacer> <number>50</number>
</item> </property>
</layout> <property name="orientation">
</widget> <enum>Qt::Horizontal</enum>
<widget class="QFrame" name="crossColorLightBackgroundFrame"> </property>
<property name="geometry"> <property name="tickPosition">
<rect> <enum>QSlider::TicksAbove</enum>
<x>250</x> </property>
<y>150</y> <property name="tickInterval">
<width>241</width> <number>20</number>
<height>51</height> </property>
</rect> </widget>
</property> </item>
<property name="frameShape"> <item>
<enum>QFrame::NoFrame</enum> <spacer name="eSpacer_3">
</property> <property name="orientation">
<property name="frameShadow"> <enum>Qt::Horizontal</enum>
<enum>QFrame::Raised</enum> </property>
</property> <property name="sizeHint" stdset="0">
<layout class="QHBoxLayout" name="crossColorLightBackgroundLayout"> <size>
<item> <width>156</width>
<widget class="QLabel" name="crossColorLightBackgroundLabel"> <height>20</height>
<property name="text"> </size>
<string>On Light Background</string> </property>
</property> </spacer>
</widget> </item>
</item> </layout>
<item> </widget>
<spacer name="horizontalSpacer_7"> </item>
<property name="orientation"> </layout>
<enum>Qt::Horizontal</enum> </widget>
</property> </item>
<property name="sizeHint" stdset="0"> <item row="1" column="0">
<size> <spacer name="verticalSpacer_4">
<width>40</width> <property name="orientation">
<height>20</height> <enum>Qt::Vertical</enum>
</size> </property>
</property> <property name="sizeHint" stdset="0">
</spacer> <size>
</item> <width>20</width>
<item> <height>342</height>
<widget class="UBColorPicker" name="crossColorLightBackgroundColorPicker"> </size>
<property name="minimumSize"> </property>
<size> </spacer>
<width>32</width> </item>
<height>32</height> </layout>
</size>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</widget> </widget>
<widget class="QWidget" name="penTab"> <widget class="QWidget" name="penTab">
<attribute name="title"> <attribute name="title">
@ -2993,7 +2980,7 @@ Public License instead of this License. But first, please read
<string notr="true">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <string notr="true">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:12pt; font-weight:600;&quot;&gt;Translations&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:12pt; font-weight:600;&quot;&gt;Translations&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;A special thanks to:&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;A special thanks to:&lt;/span&gt;&lt;/p&gt;
@ -3087,7 +3074,7 @@ p, li { white-space: pre-wrap; }
<string notr="true">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <string notr="true">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;&quot;&gt; &lt;table border=&quot;0&quot; style=&quot;-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;&quot;&gt;
&lt;tr&gt; &lt;tr&gt;
&lt;td style=&quot;border: none;&quot;&gt; &lt;td style=&quot;border: none;&quot;&gt;
@ -3106,9 +3093,9 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;Case Postale 241&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;Case Postale 241&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;1211 Genève 8&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;1211 Genève 8&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;Switzerland&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;Switzerland&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;http://www.openboard.ch&quot;&gt;&lt;span style=&quot; font-family:'.Helvetica Neue DeskInterface'; font-size:11pt; text-decoration: underline; color:#0000ff;&quot;&gt;openboard.ch&lt;/span&gt;&lt;/a&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;http://www.openboard.ch&quot;&gt;&lt;span style=&quot; font-family:'.Helvetica Neue DeskInterface'; text-decoration: underline; color:#0000ff;&quot;&gt;openboard.ch&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'.Helvetica Neue DeskInterface'; font-size:11pt; text-decoration: underline; color:#0000ff;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'.Helvetica Neue DeskInterface'; text-decoration: underline; color:#0000ff;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;emails: &lt;/span&gt;&lt;a href=&quot;mailto:sem.logistique@edu.ge.ch&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;sem.logistique@edu.ge.ch&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-family:'Ubuntu'; font-size:11pt;&quot;&gt;, &lt;/span&gt;&lt;a href=&quot;mailto:sem.logistique@edu.ge.ch&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;support@openboard.ch&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt;&quot;&gt;emails: &lt;/span&gt;&lt;a href=&quot;mailto:sem.logistique@edu.ge.ch&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;sem.logistique@edu.ge.ch&lt;/span&gt;&lt;/a&gt;, &lt;a href=&quot;mailto:sem.logistique@edu.ge.ch&quot;&gt;&lt;span style=&quot; font-family:'Cantarell'; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;support@openboard.ch&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="openExternalLinks"> <property name="openExternalLinks">
<bool>true</bool> <bool>true</bool>

Loading…
Cancel
Save