QWindowsVistaStyle: Fixed position of menu gutter when using a custom widget action.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Wed, 22 Jan 2014 09:13:17 +0000 (10:13 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 22 Jan 2014 15:44:15 +0000 (16:44 +0100)
commit05651ca4be506eaf9714a3f37c629a58c5c5856d
tree2e8cbf976aa9231242f5401ba02d585b4483e9c1
parent46613b276364a78b803a7eb4d8e96bced5c20155
QWindowsVistaStyle: Fixed position of menu gutter when using a custom widget action.

The gutter position was hardcoded to 28 which fits when drawing
on the QMenu with a left margin of 3. It became offset when drawing
on a custom widget with no margin. Calculate position relative
to margin for left to right.

[ChangeLog][QtWidgets][QMenu][Windows] Fixed position of menu gutter when using a custom widget action.

Task-number: QTBUG-36218

Change-Id: Ibb34a9fba2bab7257482b80d2e51e76a9755345c
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
(cherry picked from qtbase/a5c288ea5675a382edf0b3ecae42f461a22a7303)
src/gui/styles/qwindowsvistastyle.cpp