forked from qt-creator/qt-creator
QmlDesigner: Some cleanup
Change-Id: If1369124ca694bd5313213625636cf39a14af247 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -272,11 +272,11 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
char xProperty[] = "x";
|
static char xProperty[] = "x";
|
||||||
char yProperty[] = "y";
|
static char yProperty[] = "y";
|
||||||
char zProperty[] = "z";
|
static char zProperty[] = "z";
|
||||||
char widthProperty[] = "width";
|
static char widthProperty[] = "width";
|
||||||
char heightProperty[] = "height";
|
static char heightProperty[] = "height";
|
||||||
|
|
||||||
using namespace SelectionContextFunctors;
|
using namespace SelectionContextFunctors;
|
||||||
|
|
||||||
|
@@ -230,7 +230,7 @@ void ShortCutManager::registerActions(const Core::Context &qmlDesignerMainContex
|
|||||||
|
|
||||||
Core::ActionContainer *viewsMenu = Core::ActionManager::actionContainer(Core::Constants::M_WINDOW_VIEWS);
|
Core::ActionContainer *viewsMenu = Core::ActionManager::actionContainer(Core::Constants::M_WINDOW_VIEWS);
|
||||||
|
|
||||||
command = Core::ActionManager::registerAction(&m_toggleLeftSidebarAction, Constants::TOGGLE_LEFT_SIDEBAR, qmlDesignerMainContext);
|
command = Core::ActionManager::registerAction(&m_toggleLeftSidebarAction, Constants::TOGGLE_LEFT_SIDEBAR, qmlDesignerMainContext);
|
||||||
command->setAttribute(Core::Command::CA_Hide);
|
command->setAttribute(Core::Command::CA_Hide);
|
||||||
command->setDefaultKeySequence(QKeySequence("Ctrl+Alt+0"));
|
command->setDefaultKeySequence(QKeySequence("Ctrl+Alt+0"));
|
||||||
viewsMenu->addAction(command);
|
viewsMenu->addAction(command);
|
||||||
|
Reference in New Issue
Block a user