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/qmotifstyle.cpp | |
parent | 47132557a4c58d4ad69bc2898bb2bd9c424b3b64 (diff) | |
download | qt3-8805afa8c607ac6028207434f78a7cd90a9df64b.tar.gz qt3-8805afa8c607ac6028207434f78a7cd90a9df64b.zip |
Fix problems in prior style API changes
Diffstat (limited to 'src/styles/qmotifstyle.cpp')
-rw-r--r-- | src/styles/qmotifstyle.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/styles/qmotifstyle.cpp b/src/styles/qmotifstyle.cpp index 4c6a0c8..e91e0d0 100644 --- a/src/styles/qmotifstyle.cpp +++ b/src/styles/qmotifstyle.cpp @@ -1907,11 +1907,12 @@ QRect QMotifStyle::subRect( SubRect r, QStyleControlElementData ceData, ControlE /*! \reimp */ -void QMotifStyle::polishPopupMenu( QPopupMenu* p) +void QMotifStyle::polishPopupMenu( QStyleControlElementData ceData, ControlElementFlags elementFlags, void *ptr ) { #ifndef QT_NO_POPUPMENU - if ( !p->testWState( WState_Polished ) ) - p->setCheckable( FALSE ); + if ( !(ceData.windowState & WState_Polished ) ) { + widgetActionRequest(ceData, elementFlags, ptr, WAR_SetCheckable); + } #endif } |