diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2012-05-16 13:38:31 +0400 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-05-16 11:45:58 +0200 |
commit | dec03a0d6c7ed52ccdd67bc2f731f71b0fb1e2c6 (patch) | |
tree | 27ae078c4392d6356230b79b484a10f56fa706c9 /src/plugins/resourceeditor/resourceeditorw.h | |
parent | 9b3e46b08fd45dcc402de7d93dab6acc203f0849 (diff) |
Open file with default editor when it's activated in ResourceEditor.
This patch provides more convenient way to view/edit resource files than
"Open With" context menu.
Change-Id: I1c1fbfe48ed069d004f900e040b6517a4064b0f1
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorw.h')
-rw-r--r-- | src/plugins/resourceeditor/resourceeditorw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorw.h b/src/plugins/resourceeditor/resourceeditorw.h index d74a97711d..fc16ceb811 100644 --- a/src/plugins/resourceeditor/resourceeditorw.h +++ b/src/plugins/resourceeditor/resourceeditorw.h @@ -108,6 +108,8 @@ private slots: void onUndoStackChanged(bool canUndo, bool canRedo); void setShouldAutoSave(bool sad = true) { m_shouldAutoSave = sad; } void showContextMenu(const QPoint &globalPoint, const QString &fileName); + void openCurrentFile(); + void openFile(const QString &fileName); private: const QString m_extension; @@ -121,6 +123,7 @@ private: bool m_diskIo; QMenu *m_contextMenu; QMenu *m_openWithMenu; + QString m_currentFileName; public: void onUndo(); |