diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-09-03 15:41:25 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-09-03 14:36:38 +0000 |
commit | 9b7bab7d3521d3d3551b347eacc1a2bf4874a96c (patch) | |
tree | c09e71443dec50976924571efe1dff4bf4cbfe41 | |
parent | b6487499260f19aacc7d39ae6d410c27109e53e7 (diff) |
QmlDesigner: Hide curve editor style editorv4.10.0qds/v1.3.0-rc1
Normal users are not supposed to use the style editor.
Change-Id: I3fe99f8b893189b51690f4d54052f19ed1846722
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r-- | src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp index ed968bd0078..6186fe736cf 100644 --- a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp +++ b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp @@ -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]() { |