diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-10 08:21:54 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-10 08:21:54 +0000 |
| commit | b2c356c98be5a94413bb067c4039ea80dfa2d242 (patch) | |
| tree | a065be1d94e846ca53a7b05533188432fd57250f /examples/GuiClient | |
| parent | 803683fa867c597f2e0926c8e64abd9391607e59 (diff) | |
| download | qxmpp-b2c356c98be5a94413bb067c4039ea80dfa2d242.tar.gz | |
set indentation = 2
Diffstat (limited to 'examples/GuiClient')
| -rw-r--r-- | examples/GuiClient/xmlConsoleDialog.cpp | 4 |
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);
|
