diff options
author | Robert Loehning <robert.loehning@nokia.com> | 2011-08-16 18:55:23 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2011-08-17 12:36:33 +0200 |
commit | 738544768bc58c61db152cde139537303658ddc7 (patch) | |
tree | a41c5564b999381e0ad857c7d09fafb24fe54d43 /src/plugins/coreplugin/editormanager/openeditorsview.cpp | |
parent | d2911d70f36b7fd1de4ebbd41915782669f8d721 (diff) | |
download | qt-creator-738544768bc58c61db152cde139537303658ddc7.tar.gz |
Improved editor menus
Access native filemanager and terminal from Open documents view
and Editor menu
Task-number: QTCREATORBUG-389
Change-Id: Id6cd8839cdbd270a4ac53ccad1ae1db94d48e900
Reviewed-on: http://codereview.qt.nokia.com/2974
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/coreplugin/editormanager/openeditorsview.cpp')
-rw-r--r-- | src/plugins/coreplugin/editormanager/openeditorsview.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/editormanager/openeditorsview.cpp b/src/plugins/coreplugin/editormanager/openeditorsview.cpp index cebdf5176c..1b3b3c978f 100644 --- a/src/plugins/coreplugin/editormanager/openeditorsview.cpp +++ b/src/plugins/coreplugin/editormanager/openeditorsview.cpp @@ -205,7 +205,10 @@ void OpenEditorsWidget::closeEditor(const QModelIndex &index) void OpenEditorsWidget::contextMenuRequested(QPoint pos) { QMenu contextMenu; - EditorManager::instance()->addCloseEditorActions(&contextMenu, m_ui.editorList->indexAt(pos)); + QModelIndex editorIndex = m_ui.editorList->indexAt(pos); + EditorManager::instance()->addCloseEditorActions(&contextMenu, editorIndex); + contextMenu.addSeparator(); + EditorManager::instance()->addNativeDirActions(&contextMenu, editorIndex); contextMenu.exec(m_ui.editorList->mapToGlobal(pos)); } |