forked from qt-creator/qt-creator
Use setClipboardAndSelection more broadly
Basically everywhere besides the EmacsKeys plugin. Change-Id: Iaf2a0a5d791b5b3dd6df2c05c1b862516630d3f8 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -48,7 +48,8 @@
|
||||
#include <QHelpEngine>
|
||||
|
||||
using namespace Core;
|
||||
using namespace Help::Internal;
|
||||
|
||||
namespace Help::Internal {
|
||||
|
||||
// -- OpenPagesManager
|
||||
|
||||
@@ -252,5 +253,7 @@ void OpenPagesManager::openPagesContextMenu(const QPoint &point)
|
||||
QMenu menu;
|
||||
menu.addAction(Tr::tr("Copy Full Path to Clipboard"));
|
||||
if (menu.exec(m_comboBox->mapToGlobal(point)))
|
||||
QApplication::clipboard()->setText(fileName);
|
||||
Utils::setClipboardAndSelection(fileName);
|
||||
}
|
||||
|
||||
} // Help::Internal
|
||||
|
||||
Reference in New Issue
Block a user