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:
hjk
2022-07-14 15:44:58 +02:00
parent a5cb967704
commit d83eb0494a
19 changed files with 109 additions and 96 deletions

View File

@@ -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