From 4db2d2d64a44de948c183d8379689fa7b74f59c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Wed, 15 Dec 2010 20:21:32 +0100 Subject: Make XML console more friendly for copy/paste. Resolves: #680 diff --git a/Swift/QtUI/QtXMLConsoleWidget.cpp b/Swift/QtUI/QtXMLConsoleWidget.cpp index c9b82ce..57e1278 100644 --- a/Swift/QtUI/QtXMLConsoleWidget.cpp +++ b/Swift/QtUI/QtXMLConsoleWidget.cpp @@ -72,11 +72,11 @@ void QtXMLConsoleWidget::closeEvent(QCloseEvent* event) { } void QtXMLConsoleWidget::handleDataRead(const String& data) { - appendTextIfEnabled(data, QColor(33,98,33)); + appendTextIfEnabled("<!-- IN -->\n" + data + "\n", QColor(33,98,33)); } void QtXMLConsoleWidget::handleDataWritten(const String& data) { - appendTextIfEnabled(data, QColor(155,1,0)); + appendTextIfEnabled("<!-- OUT -->\n" + data + "\n", QColor(155,1,0)); } void QtXMLConsoleWidget::appendTextIfEnabled(const String& data, const QColor& color) { -- cgit v0.10.2-6-g49f6