summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/dbustray
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2016-09-07 17:37:50 +0300
committerShawn Rutledge <shawn.rutledge@qt.io>2016-09-15 14:15:21 +0000
commit835d7cf54328bdd93d58bb64ed96a9c322580aea (patch)
tree225458b3616e5b8ed9976d71bcb46b2666c0ebb1 /src/platformsupport/dbustray
parentf4eefce86364112ab215975e0a79755143c20491 (diff)
QMenuBar: Get rid of QMenuBarPrivate::nativeMenuBar
Instead of trying to keep that variable in sync with platformMenuBar state, just check whether platformMenuBar exists instead. Now QMenuBar::isNativeMenuBar() is more reliable, and will not return true if the QPA plugin provides no platform menu bar. Also, remove useless restrictions for code using isNativeMenuBar(). That method is available on all platforms for a long time, not only on macOS or WinCE. This makes sure local menus do not appear if global menus are available, and setVisible(true) is called. Change-Id: I7a5944c64376b4714a38ad981089df8a151c3403 Task-number: QTBUG-54793 Reviewed-by: J-P Nurmi <jpnurmi@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/platformsupport/dbustray')
0 files changed, 0 insertions, 0 deletions