summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Matthias Braun <[email protected]>2017-04-05 23:41:57 +0200
committerAlbert Astals Cid <[email protected]>2017-04-05 23:44:14 +0200
commitab1f2c9a3bc491118b51c22b8cfc9a19f1da0116 (patch)
treefd8407bab6bfa2d47a29c1c81c4128ef6e8a2519
parent643871b2c4a9792265631650d3519f7b6a55b9da (diff)
Remove quoting from kscreen-console json-output
BUG: 354534 Differential Revision: https://phabricator.kde.org/D3552
-rw-r--r--console/console.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/console/console.cpp b/console/console.cpp
index af9c446..1ee756a 100644
--- a/console/console.cpp
+++ b/console/console.cpp
@@ -35,6 +35,8 @@
#include <kscreen/getconfigoperation.h>
+static QTextStream cout(stdout);
+
namespace KScreen
{
namespace ConfigSerializer
@@ -180,7 +182,7 @@ QString Console::typetoString(const Output::Type& type) const
void Console::printJSONConfig()
{
QJsonDocument doc(KScreen::ConfigSerializer::serializeConfig(m_config));
- qDebug() << doc.toJson(QJsonDocument::Indented);
+ cout << doc.toJson(QJsonDocument::Indented);
}
void Console::printSerializations()