summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2010-01-20 13:12:56 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2010-01-20 13:16:14 (GMT)
commit67fbf535e50a0e92ff237f9ad23bf065821ba2a8 (patch)
treedf3be385d6e6678a3ab21fa9d337baa925c6ef71 /src/gui
parentbaf0f7a203281e3e1184cdfe327fb1dfa6df03ea (diff)
downloadQt-67fbf535e50a0e92ff237f9ad23bf065821ba2a8.zip
Qt-67fbf535e50a0e92ff237f9ad23bf065821ba2a8.tar.gz
Qt-67fbf535e50a0e92ff237f9ad23bf065821ba2a8.tar.bz2
Move the labels a bit down so that they align better vertically with the field.
This was a "showstopper" for QFormLayout being used in Qt Creator. Task-number: QT-958 Reviewed-by: Michael Goddard
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qformlayout.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kernel/qformlayout.cpp b/src/gui/kernel/qformlayout.cpp
index b44cd50..aebc3a5 100644
--- a/src/gui/kernel/qformlayout.cpp
+++ b/src/gui/kernel/qformlayout.cpp
@@ -1925,11 +1925,11 @@ void QFormLayoutPrivate::arrangeWidgets(const QVector<QLayoutStruct>& layouts, Q
/*
If the field on the right-hand side is tall,
we want the label to be top-aligned, but not too
- much. So we introduce a 5 / 4 factor so that it
- gets a few extra pixels at the top.
+ much. So we introduce a 7 / 4 factor so that it
+ gets some extra pixels at the top.
*/
height = qMin(height,
- qMin(label->sizeHint.height() * 5 / 4,
+ qMin(label->sizeHint.height() * 7 / 4,
label->maxSize.height()));
}