forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Eike Ziller
parent
d2911d70f3
commit
738544768b
@@ -290,7 +290,10 @@ void EditorToolBar::listContextMenu(QPoint pos)
|
||||
return;
|
||||
QMenu menu;
|
||||
QAction *copyPath = menu.addAction(tr("Copy Full Path to Clipboard"));
|
||||
menu.addSeparator();
|
||||
EditorManager::instance()->addCloseEditorActions(&menu, index);
|
||||
menu.addSeparator();
|
||||
EditorManager::instance()->addNativeDirActions(&menu, index);
|
||||
QAction *result = menu.exec(d->m_editorList->mapToGlobal(pos));
|
||||
if (result == copyPath) {
|
||||
QApplication::clipboard()->setText(QDir::toNativeSeparators(fileName));
|
||||
|
||||
Reference in New Issue
Block a user