From b2c356c98be5a94413bb067c4039ea80dfa2d242 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Sun, 10 Oct 2010 08:21:54 +0000 Subject: set indentation = 2 --- examples/GuiClient/xmlConsoleDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/GuiClient/xmlConsoleDialog.cpp') diff --git a/examples/GuiClient/xmlConsoleDialog.cpp b/examples/GuiClient/xmlConsoleDialog.cpp index e229cd16..2a2677f5 100644 --- a/examples/GuiClient/xmlConsoleDialog.cpp +++ b/examples/GuiClient/xmlConsoleDialog.cpp @@ -19,10 +19,12 @@ xmlConsoleDialog::~xmlConsoleDialog() void xmlConsoleDialog::message(QXmppLogger::MessageType type, const QString& text) { QDomDocument doc; + +// Indent XML string bool isXml = doc.setContent(text); QString formattedText; QTextStream stream(&formattedText); - doc.save(stream, 4); + doc.save(stream, 2); if(isXml) ui->textBrowser->append(formattedText); -- cgit v1.2.3