diff options
author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2010-11-17 12:59:08 +0100 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2010-11-17 12:59:28 +0100 |
commit | 71d98970cf7d1b008d24f0a067084a6c4d010d7e (patch) | |
tree | 7ef3707bcd7c1e89b3e81507e83f1953c80fe681 /src/plugins/qmldesigner/qmldesignerconstants.h | |
parent | 9f824f416594aba1548c6e5e245cbfc97591325b (diff) | |
download | qt-creator-71d98970cf7d1b008d24f0a067084a6c4d010d7e.tar.gz |
QmlDesigner: adding a distinguished context for the form editor
Since Actions like copy/paste and delete interfiere
with controls like LineEdit, I added a special context
for the form editor. Now copy/paste/delete on the Qml items
are only registered for the form editor context and copying the contens
of a LineEdit will not lead to copy an item instead, anymore.
Reviewed-by: Kai Koehne
Diffstat (limited to 'src/plugins/qmldesigner/qmldesignerconstants.h')
-rw-r--r-- | src/plugins/qmldesigner/qmldesignerconstants.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/qmldesignerconstants.h b/src/plugins/qmldesigner/qmldesignerconstants.h index 90dca941fe..a480b43749 100644 --- a/src/plugins/qmldesigner/qmldesignerconstants.h +++ b/src/plugins/qmldesigner/qmldesignerconstants.h @@ -37,7 +37,8 @@ const char * const DELETE = "QmlDesigner.Delete"; // context const char * const C_DESIGN_MODE = "QmlDesigner::DesignMode"; -const char * const C_FORMEDITOR = "QmlDesigner::QmlFormEditor"; +const char * const C_QMLDESIGNER = "QmlDesigner::QmlDesignerMain"; +const char * const C_QMLFORMEDITOR = "QmlDesigner::FormEditor"; // special context for preview menu, shared b/w designer and text editor const char * const C_QT_QUICK_TOOLS_MENU = "QmlDesigner::ToolsMenu"; |