[PATCH] About: improve dialog layout

Lubomir I. Ivanov neolit123 at gmail.com
Thu Jul 11 05:17:16 PDT 2013


On 10 July 2013 13:03, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
>
> This modifications makes the About dialog spacing more
> consitent with different font sizes. Tested on
> Ubuntu 12.04 with the 'Universal Access->Text size'
> settings.
>
> Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
> ---
>  qt-ui/about.ui | 49 ++++++++++---------------------------------------
>  1 file changed, 10 insertions(+), 39 deletions(-)
>
> diff --git a/qt-ui/about.ui b/qt-ui/about.ui
> index e03bb3e..158cbc8 100644
> --- a/qt-ui/about.ui
> +++ b/qt-ui/about.ui
> @@ -9,8 +9,8 @@
>     <rect>
>      <x>0</x>
>      <y>0</y>
> -    <width>456</width>
> -    <height>450</height>
> +    <width>359</width>
> +    <height>423</height>
>     </rect>
>    </property>
>    <property name="sizePolicy">
> @@ -31,37 +31,21 @@
>    </property>
>    <layout class="QVBoxLayout" name="verticalLayout_2">
>     <property name="spacing">
> -    <number>0</number>
> +    <number>20</number>
>     </property>
>     <property name="leftMargin">
> -    <number>0</number>
> +    <number>30</number>
>     </property>
>     <property name="topMargin">
> -    <number>0</number>
> +    <number>30</number>
>     </property>
>     <property name="rightMargin">
> -    <number>0</number>
> +    <number>30</number>
>     </property>
>     <property name="bottomMargin">
> -    <number>0</number>
> +    <number>20</number>
>     </property>
>     <item>
> -    <spacer name="verticalSpacer">
> -     <property name="orientation">
> -      <enum>Qt::Vertical</enum>
> -     </property>
> -     <property name="sizeType">
> -      <enum>QSizePolicy::Fixed</enum>
> -     </property>
> -     <property name="sizeHint" stdset="0">
> -      <size>
> -       <width>20</width>
> -       <height>20</height>
> -      </size>
> -     </property>
> -    </spacer>
> -   </item>
> -   <item>
>      <widget class="QLabel" name="subsurfaceIcon">
>       <property name="text">
>        <string/>
> @@ -85,6 +69,9 @@
>       <property name="alignment">
>        <set>Qt::AlignCenter</set>
>       </property>
> +     <property name="margin">
> +      <number>10</number>
> +     </property>
>      </widget>
>     </item>
>     <item>
> @@ -100,22 +87,6 @@
>       </property>
>      </widget>
>     </item>
> -   <item>
> -    <spacer name="verticalSpacer_2">
> -     <property name="orientation">
> -      <enum>Qt::Vertical</enum>
> -     </property>
> -     <property name="sizeType">
> -      <enum>QSizePolicy::Fixed</enum>
> -     </property>
> -     <property name="sizeHint" stdset="0">
> -      <size>
> -       <width>20</width>
> -       <height>20</height>
> -      </size>
> -     </property>
> -    </spacer>
> -   </item>
>    </layout>
>   </widget>
>   <resources>
> --
> 1.7.11.msysgit.0
>

bump. is this one worth it?

lubomir
--


More information about the subsurface mailing list