diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-10 07:00:14 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-10 07:00:14 +0000 |
| commit | 3b60dc4e32446afed425bd35f15b8000503c2788 (patch) | |
| tree | c84487d5d0a75954bdef1324ae7406a60d102d24 /examples/GuiClient/mainDialog.cpp | |
| parent | 0a028cd53598276d375cde1d09e870294ad4d626 (diff) | |
| download | qxmpp-3b60dc4e32446afed425bd35f15b8000503c2788.tar.gz | |
first version of xml console
Diffstat (limited to 'examples/GuiClient/mainDialog.cpp')
| -rw-r--r-- | examples/GuiClient/mainDialog.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/examples/GuiClient/mainDialog.cpp b/examples/GuiClient/mainDialog.cpp index 8272e023..3d4dc49a 100644 --- a/examples/GuiClient/mainDialog.cpp +++ b/examples/GuiClient/mainDialog.cpp @@ -38,6 +38,7 @@ #include "QXmppRosterIq.h" #include "profileDialog.h" +#include "xmlConsoleDialog.h" #include <QMovie> #include <QCompleter> @@ -89,7 +90,7 @@ mainDialog::mainDialog(QWidget *parent): QDialog(parent, Qt::Window), this, SLOT(presenceReceived(const QXmppPresence&))); Q_ASSERT(check); - QXmppLogger::getLogger()->setLoggingType(QXmppLogger::FileLogging); + QXmppLogger::getLogger()->setLoggingType(QXmppLogger::SignalLogging); check = connect(&m_xmppClient.rosterManager(), @@ -803,4 +804,12 @@ void mainDialog::errorClient(QXmppClient::Error error) void mainDialog::action_showXml() { + xmlConsoleDialog dlg(this); + bool check = connect(QXmppLogger::getLogger(), + SIGNAL(message(QXmppLogger::MessageType, const QString &)), + &dlg, + SLOT(message(QXmppLogger::MessageType, const QString &))); + Q_ASSERT(check); + Q_UNUSED(check); + dlg.exec(); } |
