diff options
author | Gabriel de Dietrich <gabriel.dedietrich@qt.io> | 2018-03-27 11:23:03 -0700 |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dedietrich@qt.io> | 2018-04-04 02:41:33 +0000 |
commit | 6d644c7a7737837fad71990b9ea028f7cfdcc2e5 (patch) | |
tree | e08cd972ec3e56dd469c4de9c1b8f56c93a96aae /src | |
parent | c7dac6469c3bc804a70e1afcc0dc7865afc28e5a (diff) |
QWidget: Fix typo in Mac size propagation
This amends commit f8b6d104b981ef420756c0c20f62b8013d93ae15.
Change-Id: I77a48e68ec7db791b843fe4dfeddc4c6fedf6380
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/kernel/qwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 0a46d2a8eb..c347ca0b59 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -11148,7 +11148,7 @@ void QWidgetPrivate::macUpdateSizeAttribute() for (int i = 0; i < children.size(); ++i) { QWidget *w = qobject_cast<QWidget *>(children.at(i)); if (w && (!w->isWindow() || w->testAttribute(Qt::WA_WindowPropagation)) - && !q->testAttribute(Qt::WA_MacMiniSize) // no attribute set? inherit from parent + && !w->testAttribute(Qt::WA_MacMiniSize) // no attribute set? inherit from parent && !w->testAttribute(Qt::WA_MacSmallSize) && !w->testAttribute(Qt::WA_MacNormalSize)) w->d_func()->macUpdateSizeAttribute(); |