Set QAction::NoRole on dock widget view actions.
Prevent the actions from being shuffled around in OS X menus since the default is QAction::TextHeuristicRole. Task-number: QTBUG-47739 Change-Id: Ib68bb7c51eb9278a99d277473f9d4cfcf740431c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>bb10
parent
3997321199
commit
53251e23cf
|
|
@ -614,6 +614,7 @@ void QDockWidgetPrivate::init()
|
|||
#ifndef QT_NO_ACTION
|
||||
toggleViewAction = new QAction(q);
|
||||
toggleViewAction->setCheckable(true);
|
||||
toggleViewAction->setMenuRole(QAction::NoRole);
|
||||
fixedWindowTitle = qt_setWindowTitle_helperHelper(q->windowTitle(), q);
|
||||
toggleViewAction->setText(fixedWindowTitle);
|
||||
QObject::connect(toggleViewAction, SIGNAL(triggered(bool)),
|
||||
|
|
|
|||
Loading…
Reference in New Issue