forked from qt-creator/qt-creator
QmlDesigner: Hide curve editor style editor
Normal users are not supposed to use the style editor. Change-Id: I3fe99f8b893189b51690f4d54052f19ed1846722 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -296,8 +296,11 @@ void GraphicsView::contextMenuEvent(QContextMenuEvent *event)
|
||||
auto openStyleEditor = [this]() { m_dialog.show(); };
|
||||
|
||||
QMenu menu;
|
||||
QAction *openEditorAction = menu.addAction(tr("Open Style Editor"));
|
||||
connect(openEditorAction, &QAction::triggered, openStyleEditor);
|
||||
|
||||
if (qEnvironmentVariableIsSet("QTC_STYLE_CURVE_EDITOR")) {
|
||||
QAction *openEditorAction = menu.addAction(tr("Open Style Editor"));
|
||||
connect(openEditorAction, &QAction::triggered, openStyleEditor);
|
||||
}
|
||||
|
||||
menu.addSeparator();
|
||||
auto insertKeyframes = [this, event]() {
|
||||
|
Reference in New Issue
Block a user