diff options
Diffstat (limited to 'examples/GuiClient/xmlConsoleDialog.cpp')
| -rw-r--r-- | examples/GuiClient/xmlConsoleDialog.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/GuiClient/xmlConsoleDialog.cpp b/examples/GuiClient/xmlConsoleDialog.cpp new file mode 100644 index 00000000..bad3cd49 --- /dev/null +++ b/examples/GuiClient/xmlConsoleDialog.cpp @@ -0,0 +1,20 @@ +#include "xmlConsoleDialog.h"
+#include "ui_xmlConsoleDialog.h"
+
+xmlConsoleDialog::xmlConsoleDialog(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::xmlConsoleDialog)
+{
+ ui->setupUi(this);
+}
+
+xmlConsoleDialog::~xmlConsoleDialog()
+{
+ delete ui;
+}
+
+void xmlConsoleDialog::message(QXmppLogger::MessageType type, const QString& text)
+{
+ ui->textBrowser->append(text);
+ ui->textBrowser->append("\n");
+}
|
