From 54dea9efb8e79f02db4c775a355cb2b3f0d6a4e4 Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Thu, 19 Dec 2013 22:54:18 +0100 Subject: [PATCH] Make developer comment copyable for clipboard Make developer comment text copyable even when not editable. This will make it behave just like source text does during clipboard copy. Change-Id: I1672a41acbe3c9c92e7b9766cd81db4b0463caea Reviewed-by: Oswald Buddenhagen --- src/linguist/linguist/messageeditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/linguist/linguist/messageeditor.cpp b/src/linguist/linguist/messageeditor.cpp index 58eff7e..a832e30 100644 --- a/src/linguist/linguist/messageeditor.cpp +++ b/src/linguist/linguist/messageeditor.cpp @@ -155,6 +155,8 @@ void MessageEditor::setupEditorPage() m_commentText->setWhatsThis(tr("This area shows a comment that" " may guide you, and the context in which the text" " occurs.") ); + connect(m_commentText, SIGNAL(selectionChanged(QTextEdit*)), + SLOT(selectionChanged(QTextEdit*))); QBoxLayout *subLayout = new QVBoxLayout; -- 2.7.4