forked from qt-creator/qt-creator
Analyzer: Use QKeySequence::copy for copying to clipboard.
Change-Id: I238eace2198e5a2329ce7db559e4df354e84cb80 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -245,7 +245,7 @@ void DetailedErrorView::setItemDelegate(QAbstractItemDelegate *delegate)
|
|||||||
m_copyAction = new QAction(this);
|
m_copyAction = new QAction(this);
|
||||||
m_copyAction->setText(tr("Copy"));
|
m_copyAction->setText(tr("Copy"));
|
||||||
m_copyAction->setIcon(QIcon(QLatin1String(Core::Constants::ICON_COPY)));
|
m_copyAction->setIcon(QIcon(QLatin1String(Core::Constants::ICON_COPY)));
|
||||||
m_copyAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_C));
|
m_copyAction->setShortcut(QKeySequence::Copy);
|
||||||
m_copyAction->setShortcutContext(Qt::WidgetWithChildrenShortcut);
|
m_copyAction->setShortcutContext(Qt::WidgetWithChildrenShortcut);
|
||||||
connect(m_copyAction, &QAction::triggered, myDelegate, &DetailedErrorDelegate::copyToClipboard);
|
connect(m_copyAction, &QAction::triggered, myDelegate, &DetailedErrorDelegate::copyToClipboard);
|
||||||
addAction(m_copyAction);
|
addAction(m_copyAction);
|
||||||
|
Reference in New Issue
Block a user