summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/shortcutmanager.h
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2022-08-04 12:40:06 +0300
committerMahmoud Badri <mahmoud.badri@qt.io>2022-08-17 13:11:58 +0000
commitec565eea996e7faa98571bb3c0bb84caa02b8b0e (patch)
treebd6342b23f0703d14225d48f02830e5ebb71a97d /src/plugins/qmldesigner/shortcutmanager.h
parent01bb84b8087b4d0df65a8ca64a6e06162844cd8e (diff)
downloadqt-creator-ec565eea996e7faa98571bb3c0bb84caa02b8b0e.tar.gz
QmlDesigner: Allow deleting materials using the delete action
Fixes: QDS-7012 Change-Id: I5eb03971d33a997fc1463ec4ee70eb33a730a897 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/shortcutmanager.h')
-rw-r--r--src/plugins/qmldesigner/shortcutmanager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/shortcutmanager.h b/src/plugins/qmldesigner/shortcutmanager.h
index 4bc4ae5f84..149bf56640 100644
--- a/src/plugins/qmldesigner/shortcutmanager.h
+++ b/src/plugins/qmldesigner/shortcutmanager.h
@@ -47,7 +47,8 @@ public:
void registerActions(const Core::Context &qmlDesignerMainContext,
const Core::Context &qmlDesignerFormEditorContext,
const Core::Context &qmlDesignerEditor3DContext,
- const Core::Context &qmlDesignerNavigatorContext);
+ const Core::Context &qmlDesignerNavigatorContext,
+ const Core::Context &qmlDesignerMaterialBrowserContext);
void connectUndoActions(DesignDocument *designDocument);
void disconnectUndoActions(DesignDocument *designDocument);
@@ -84,6 +85,8 @@ private:
QAction m_pasteAction;
QAction m_selectAllAction;
QAction m_escapeAction;
+
+ bool isMatBrowserActive = false;
};
} // namespace QmlDesigner