diff options
author | Timothy Pearson <[email protected]> | 2012-08-08 17:42:21 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-08-08 17:42:21 -0500 |
commit | 8805afa8c607ac6028207434f78a7cd90a9df64b (patch) | |
tree | 839aeaab6a6a79a4b4e04beabc65658354b179b1 /src/styles/qwindowsstyle.cpp | |
parent | 47132557a4c58d4ad69bc2898bb2bd9c424b3b64 (diff) | |
download | qt3-8805afa8c607ac6028207434f78a7cd90a9df64b.tar.gz qt3-8805afa8c607ac6028207434f78a7cd90a9df64b.zip |
Fix problems in prior style API changes
Diffstat (limited to 'src/styles/qwindowsstyle.cpp')
-rw-r--r-- | src/styles/qwindowsstyle.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/styles/qwindowsstyle.cpp b/src/styles/qwindowsstyle.cpp index ec05b80..4bdb421 100644 --- a/src/styles/qwindowsstyle.cpp +++ b/src/styles/qwindowsstyle.cpp @@ -1155,11 +1155,12 @@ QSize QWindowsStyle::sizeFromContents( ContentsType contents, /*! \reimp */ -void QWindowsStyle::polishPopupMenu( QPopupMenu* p) +void QWindowsStyle::polishPopupMenu( QStyleControlElementData ceData, ControlElementFlags elementFlags, void *ptr ) { #ifndef QT_NO_POPUPMENU - if ( !p->testWState( WState_Polished ) ) - p->setCheckable( TRUE ); + if ( !(ceData.windowState & WState_Polished ) ) { + widgetActionRequest(ceData, elementFlags, ptr, WAR_SetCheckable); + } #endif } |