From 5dac70f3f45821cdb7035efb6255aa83d3545691 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Sun, 17 Oct 2010 13:46:55 +0000 Subject: add aboutDialog --- examples/GuiClient/aboutDialog.cpp | 19 ++++++++++ examples/GuiClient/aboutDialog.h | 22 ++++++++++++ examples/GuiClient/aboutDialog.ui | 71 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 examples/GuiClient/aboutDialog.cpp create mode 100644 examples/GuiClient/aboutDialog.h create mode 100644 examples/GuiClient/aboutDialog.ui (limited to 'examples/GuiClient') diff --git a/examples/GuiClient/aboutDialog.cpp b/examples/GuiClient/aboutDialog.cpp new file mode 100644 index 00000000..38063721 --- /dev/null +++ b/examples/GuiClient/aboutDialog.cpp @@ -0,0 +1,19 @@ +#include "aboutDialog.h" +#include "ui_aboutDialog.h" +#include "QXmppGlobal.h" + +aboutDialog::aboutDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::aboutDialog) +{ + ui->setupUi(this); + + ui->textEdit->append(QString("Copyright © 2009-2010, Manjeet Dahiya")); + ui->textEdit->append(qApp->applicationName() + " " + qApp->applicationVersion()); + ui->textEdit->append(QString("Based on QXmpp v %1").arg(QXmppVersion())); +} + +aboutDialog::~aboutDialog() +{ + delete ui; +} diff --git a/examples/GuiClient/aboutDialog.h b/examples/GuiClient/aboutDialog.h new file mode 100644 index 00000000..f0adcc66 --- /dev/null +++ b/examples/GuiClient/aboutDialog.h @@ -0,0 +1,22 @@ +#ifndef ABOUTDIALOG_H +#define ABOUTDIALOG_H + +#include + +namespace Ui { + class aboutDialog; +} + +class aboutDialog : public QDialog +{ + Q_OBJECT + +public: + explicit aboutDialog(QWidget *parent = 0); + ~aboutDialog(); + +private: + Ui::aboutDialog *ui; +}; + +#endif // ABOUTDIALOG_H diff --git a/examples/GuiClient/aboutDialog.ui b/examples/GuiClient/aboutDialog.ui new file mode 100644 index 00000000..bb124d00 --- /dev/null +++ b/examples/GuiClient/aboutDialog.ui @@ -0,0 +1,71 @@ + + + aboutDialog + + + + 0 + 0 + 309 + 218 + + + + Dialog + + + + + + true + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + aboutDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + aboutDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + -- cgit v1.2.3