forked from qt-creator/qt-creator
QmlDesigner: Fix view menu constants and comments
Change-Id: If48b80fc2d928d177d59693371ba9d8f9d66bfca Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
2c91080502
commit
7f44ef76f1
@@ -273,11 +273,11 @@ void DesignModeWidget::setup()
|
||||
|
||||
// Setup Actions and Menus
|
||||
Core::ActionContainer *mview = Core::ActionManager::actionContainer(Core::Constants::M_VIEW);
|
||||
// Window > Views
|
||||
// View > Views
|
||||
Core::ActionContainer *mviews = Core::ActionManager::createMenu(Core::Constants::M_VIEW_VIEWS);
|
||||
mviews->menu()->addSeparator();
|
||||
// Window > Workspaces
|
||||
Core::ActionContainer *mworkspaces = Core::ActionManager::createMenu(QmlDesigner::Constants::M_WINDOW_WORKSPACES);
|
||||
// View > Workspaces
|
||||
Core::ActionContainer *mworkspaces = Core::ActionManager::createMenu(QmlDesigner::Constants::M_VIEW_WORKSPACES);
|
||||
mview->addMenu(mworkspaces, Core::Constants::G_VIEW_VIEWS);
|
||||
mworkspaces->menu()->setTitle(tr("&Workspaces"));
|
||||
mworkspaces->setOnAllDisabledBehavior(Core::ActionContainer::Show);
|
||||
@@ -488,7 +488,7 @@ void DesignModeWidget::setup()
|
||||
|
||||
void DesignModeWidget::aboutToShowWorkspaces()
|
||||
{
|
||||
Core::ActionContainer *aci = Core::ActionManager::actionContainer(QmlDesigner::Constants::M_WINDOW_WORKSPACES);
|
||||
Core::ActionContainer *aci = Core::ActionManager::actionContainer(QmlDesigner::Constants::M_VIEW_WORKSPACES);
|
||||
QMenu *menu = aci->menu();
|
||||
menu->clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user