From 2d7910fdf61c44549610755eb6b2dc8cde3461c9 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Mon, 11 Oct 2010 14:53:00 +0000 Subject: enable/disable logging --- examples/GuiClient/xmlConsoleDialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/GuiClient/xmlConsoleDialog.cpp') diff --git a/examples/GuiClient/xmlConsoleDialog.cpp b/examples/GuiClient/xmlConsoleDialog.cpp index 7b603118..e915d53b 100644 --- a/examples/GuiClient/xmlConsoleDialog.cpp +++ b/examples/GuiClient/xmlConsoleDialog.cpp @@ -25,6 +25,9 @@ xmlConsoleDialog::~xmlConsoleDialog() void xmlConsoleDialog::message(QXmppLogger::MessageType type, const QString& text) { + if(!ui->checkBox_enable->isChecked()) + return; + QColor color; switch(type) { -- cgit v1.2.3