diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2011-12-09 12:23:46 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2011-12-13 10:09:58 +0100 |
commit | 1899a3838f012a43abaeba3959c1b591649fde1e (patch) | |
tree | cc4732c9eff37f554f89185d8e4e66e68a55e0c3 /src/plugins/resourceeditor/resourceeditorw.h | |
parent | cfcb7e3101f69e18a7e2dfdba86349ec16db8610 (diff) |
Provide "Open with" context menu in qrc editor.
Task-number: QTCREATORBUG-4224
Change-Id: If2b13fa8b58779058d483d532c2c9649f7fa8dfd
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorw.h')
-rw-r--r-- | src/plugins/resourceeditor/resourceeditorw.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorw.h b/src/plugins/resourceeditor/resourceeditorw.h index ac13330ce2..5b24ac5320 100644 --- a/src/plugins/resourceeditor/resourceeditorw.h +++ b/src/plugins/resourceeditor/resourceeditorw.h @@ -38,6 +38,10 @@ #include <QtCore/QPointer> +QT_BEGIN_NAMESPACE +class QMenu; +QT_END_NAMESPACE + namespace SharedTools { class QrcEditor; } @@ -104,6 +108,7 @@ private slots: void dirtyChanged(bool); void onUndoStackChanged(bool canUndo, bool canRedo); void setShouldAutoSave(bool sad = true) { m_shouldAutoSave = sad; } + void showContextMenu(const QPoint &globalPoint, const QString &fileName); private: const QString m_extension; @@ -115,6 +120,8 @@ private: ResourceEditorPlugin *m_plugin; bool m_shouldAutoSave; bool m_diskIo; + QMenu *m_contextMenu; + QMenu *m_openWithMenu; public: void onUndo(); |