diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-12-15 19:21:32 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-12-15 19:21:32 (GMT) |
commit | 4db2d2d64a44de948c183d8379689fa7b74f59c9 (patch) | |
tree | 6383f9d788a0d3f0049c166977b4056e194fd592 | |
parent | 646928e8edc3bdef4585200ae282379a3c2d9d64 (diff) | |
download | swift-contrib-4db2d2d64a44de948c183d8379689fa7b74f59c9.zip swift-contrib-4db2d2d64a44de948c183d8379689fa7b74f59c9.tar.bz2 |
Make XML console more friendly for copy/paste.
Resolves: #680
-rw-r--r-- | Swift/QtUI/QtXMLConsoleWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |