aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/xmlConsoleDialog.cpp
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-10-10 08:21:54 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-10-10 08:21:54 +0000
commitb2c356c98be5a94413bb067c4039ea80dfa2d242 (patch)
treea065be1d94e846ca53a7b05533188432fd57250f /examples/GuiClient/xmlConsoleDialog.cpp
parent803683fa867c597f2e0926c8e64abd9391607e59 (diff)
downloadqxmpp-b2c356c98be5a94413bb067c4039ea80dfa2d242.tar.gz
set indentation = 2
Diffstat (limited to 'examples/GuiClient/xmlConsoleDialog.cpp')
-rw-r--r--examples/GuiClient/xmlConsoleDialog.cpp4
1 files changed, 3 insertions, 1 deletions
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);