[Differential] [Requested Changes To] D3552: Remove quoting from kscreen-console json-output (Bug 354534)

sebas (Sebastian Kügler) noreply at phabricator.kde.org
Thu Dec 1 11:31:30 UTC 2016


sebas requested changes to this revision.
sebas added a comment.
This revision now requires changes to proceed.


  Idea in general looks good, I'd rather use QTextStream than std though. Can you change that?

INLINE COMMENTS

> console.cpp:185
>      QJsonDocument doc(KScreen::ConfigSerializer::serializeConfig(m_config));
> -    qDebug() << doc.toJson(QJsonDocument::Indented);
> +    std::cout << doc.toJson(QJsonDocument::Indented).toStdString();
>  }

In other tools, we use QTextStream for the output, I'd prefer that. See libkscreen/src/doctor.cpp for an example.

REPOSITORY
  R104 KScreen

REVISION DETAIL
  https://phabricator.kde.org/D3552

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: jbraun, sebas
Cc: broulik, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161201/a82e0e8d/attachment.html>


More information about the Plasma-devel mailing list