From d801bd622a0d01cbfd5de9baf5207f888a31f962 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 25 May 2015 14:20:21 -0300 Subject: Layout issues: Fix the layout ugliness on Mac & Linux I seem to have found a sane way to create layouts: If it's the 'outer' layout, the one that encapsulates everything: - Horizontal Spacing: 5 - Vertical Spacing: 5 If it's a vertical inner layout that is grouping items like label + control: - Spacing: 0 This way the label will be 'touching' the item, without empty space, so you know that the label refers to that widget. If it's an horizontal inner layout: - Spacing: 5 Different from the Vertical Layout, we don't want to make horizontal items touch each other, a bit of space is fundamental to the eyes. If it's a Grid Layout: - Vertical Space: 0 - Horizontal Space: 5 Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/maintab.ui | 249 +++++++++++++++++++++++++++++++++++++--------------- qt-ui/mainwindow.ui | 16 +++- 2 files changed, 190 insertions(+), 75 deletions(-) diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui index da8cabecb..490e2ff44 100644 --- a/qt-ui/maintab.ui +++ b/qt-ui/maintab.ui @@ -18,6 +18,18 @@ Notes + + 5 + + + 5 + + + 5 + + + 5 + 0 @@ -40,18 +52,39 @@ 0 0 - 417 - 744 + 449 + 758 - + + + 0 + + + 0 + + + 0 + + + 0 + + + 5 + + + 0 + Date + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + @@ -59,6 +92,9 @@ Time + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + @@ -66,6 +102,9 @@ Air temp. + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + @@ -73,6 +112,9 @@ Water temp. + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + @@ -115,44 +157,62 @@ - + + + 0 + Location - - - - - - - - - - false + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - manage + + + 2 - - - - + + + + false + + + + + + + manage + + + + + + + + + 5 + + + 0 + Divemaster + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + @@ -160,6 +220,9 @@ Buddy + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + @@ -180,6 +243,12 @@ + + 5 + + + 0 + @@ -250,6 +319,12 @@ + + 5 + + + 0 + @@ -258,6 +333,9 @@ Tags + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + @@ -265,6 +343,9 @@ Dive mode + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + @@ -295,65 +376,87 @@ - - - Notes - - - - - + 0 - - - false + + + Notes + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - 0 - - - - - Qt::Vertical + + + 0 + + + + + false + + + + + + + + 0 - - - 20 - 40 - + + 0 - - - - - - + + 0 - - - :/facebook:/facebook + + 0 - - - 32 - 32 - + + 0 - - true - - - - - + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + :/facebook:/facebook + + + + 32 + 32 + + + + true + + + + + + + @@ -387,8 +490,8 @@ 0 0 - 98 - 55 + 435 + 736 @@ -443,8 +546,8 @@ 0 0 - 330 - 334 + 435 + 736 @@ -760,8 +863,8 @@ 0 0 - 328 - 208 + 435 + 736 diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui index 8e98bed6c..c7367bc66 100644 --- a/qt-ui/mainwindow.ui +++ b/qt-ui/mainwindow.ui @@ -15,6 +15,18 @@ 0 + + 0 + + + 0 + + + 0 + + + 0 + @@ -243,7 +255,7 @@ - &Edit device names + Edit device &names @@ -699,7 +711,7 @@ - Find moved images + &Find moved images -- cgit v1.2.3-70-g09d2