From cf21092ec50b1860f38f3235062aae367a0c2c76 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 12 Feb 2015 12:48:35 +0100 Subject: [PATCH] Analyzer: Use QKeySequence::copy for copying to clipboard. Change-Id: I238eace2198e5a2329ce7db559e4df354e84cb80 Reviewed-by: hjk --- src/plugins/analyzerbase/detailederrorview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/analyzerbase/detailederrorview.cpp b/src/plugins/analyzerbase/detailederrorview.cpp index d15c8b2e72c..03e48794010 100644 --- a/src/plugins/analyzerbase/detailederrorview.cpp +++ b/src/plugins/analyzerbase/detailederrorview.cpp @@ -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);