From db6db2f9d4d2c441ef33a6bccc83c8e66be467b7 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Wed, 5 Oct 2011 12:27:44 +0200 Subject: [PATCH] qwindowsstyle: Remove duplicate flag in mask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding State_Sunken once should be enough for everyone. Task-number: QTBUG-20482 Change-Id: Ic5c1bf47283d9c344eda41c766749d4106a8da67 Reviewed-on: http://codereview.qt-project.org/6051 Reviewed-by: Qt Sanity Bot Reviewed-by: Jędrzej Nowacki --- src/widgets/styles/qwindowsstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/styles/qwindowsstyle.cpp b/src/widgets/styles/qwindowsstyle.cpp index 7e10b41c70..45bdce1325 100644 --- a/src/widgets/styles/qwindowsstyle.cpp +++ b/src/widgets/styles/qwindowsstyle.cpp @@ -1357,7 +1357,7 @@ void QWindowsStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, p->setPen(pal.dark().color()); p->setBrush(fill); p->drawRect(r.adjusted(0, 0, -1, -1)); - } else if (flags & (State_Raised | State_Sunken | State_On | State_Sunken)) { + } else if (flags & (State_Raised | State_On | State_Sunken)) { qDrawWinButton(p, r, pal, flags & (State_Sunken | State_On), &fill); } else {