summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-01-20 17:41:48 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-01-20 17:41:48 (GMT)
commit185388c0bf0f258d070376a2a3e50b9e89e1a249 (patch)
tree609422b6a448e3670956686442fe574335507db4 /src/gui/kernel
parent304c70a03406eb16b9a08719769655b75bf6d8e3 (diff)
parente7b0998325a66ecb9f979f253d732db85e1f43d1 (diff)
downloadQt-185388c0bf0f258d070376a2a3e50b9e89e1a249.zip
Qt-185388c0bf0f258d070376a2a3e50b9e89e1a249.tar.gz
Qt-185388c0bf0f258d070376a2a3e50b9e89e1a249.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2: QGraphicsItem::hasFocus() performance regression. Fix crashes in QByteArray Move the labels a bit down so that they align better vertically with the field. Add command to qmake to do symbian-uid generation Fixed QBitmap::load to load into bitmap format again. Fixed a crash under X11 when drawing QPixmaps to QGLPixelBuffers. Text drawing is not fast currently
Diffstat (limited to 'src/gui/kernel')
-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()));
}