From f8d1e16da0ea8b3e4c1aefcac5e79c0c8f448570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Sun, 26 Jul 2020 20:24:43 +0200 Subject: [PATCH] Add missing enumeration case in tst_QMacStyle::setSize Change-Id: Iade36b03c6f8bdaa8feb82ef89744a399f92e21d Reviewed-by: Volker Hilsheimer --- tests/auto/widgets/styles/qmacstyle/tst_qmacstyle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/widgets/styles/qmacstyle/tst_qmacstyle.cpp b/tests/auto/widgets/styles/qmacstyle/tst_qmacstyle.cpp index 8f18c8a756..899d090b5e 100644 --- a/tests/auto/widgets/styles/qmacstyle/tst_qmacstyle.cpp +++ b/tests/auto/widgets/styles/qmacstyle/tst_qmacstyle.cpp @@ -295,6 +295,8 @@ QSize tst_QMacStyle::gap(QWidget *widget1, QWidget *widget2) void tst_QMacStyle::setSize(QWidget *widget, QStyleHelper::WidgetSizePolicy size) { switch (size) { + case QStyleHelper::SizeDefault: + break; case QStyleHelper::SizeLarge: widget->setAttribute(Qt::WA_MacNormalSize, true); break;