Commit 1b30462f authored by Eike Ziller's avatar Eike Ziller
Browse files

ManhattanStyle: Fix size of field in form layouts on OS X

The default in QMacStyle, to use FieldsStayAtSizeHint, just almost
always is the wrong thing to do. Additionally this goes undetected for a
while most of the time, because most people do not run their code on OS
X. Override it globally to AllNonFixedFieldsGrow like in other shipped

Task-number: QTCREATORBUG-14337
Change-Id: I3b0719c0201871fbf0163b54b1a54823bf5d14f3
Reviewed-by: default avatarDaniel Teske <>
parent 4ddcafad
......@@ -43,6 +43,7 @@
#include <QApplication>
#include <QComboBox>
#include <QDockWidget>
#include <QFormLayout>
#include <QLabel>
#include <QLineEdit>
#include <QMenuBar>
......@@ -372,6 +373,11 @@ int ManhattanStyle::styleHint(StyleHint hint, const QStyleOption *option, const
if (activationMode.isValid())
ret = activationMode.toBool();
case QStyle::SH_FormLayoutFieldGrowthPolicy:
// The default in QMacStyle, FieldsStayAtSizeHint, is just always the wrong thing
// Use the same as on all other shipped styles
if (Utils::HostOsInfo::isMacHost())
ret = QFormLayout::AllNonFixedFieldsGrow;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment