Analyzer: Use QKeySequence::copy for copying to clipboard.

Change-Id: I238eace2198e5a2329ce7db559e4df354e84cb80
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Christian Kandeler
2015-02-12 12:48:35 +01:00
committed by hjk
parent 921ec6da5a
commit cf21092ec5

View File

@@ -245,7 +245,7 @@ void DetailedErrorView::setItemDelegate(QAbstractItemDelegate *delegate)
m_copyAction = new QAction(this);
m_copyAction->setText(tr("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);
connect(m_copyAction, &QAction::triggered, myDelegate, &DetailedErrorDelegate::copyToClipboard);
addAction(m_copyAction);