From f59f1f1402ef678b0789d14937d7806fd952601a Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Thu, 9 Sep 2010 08:23:53 +0000 Subject: add profile dialog --- examples/GuiClient/GuiClient.pro | 10 ++- examples/GuiClient/profileDialog.cpp | 14 ++++ examples/GuiClient/profileDialog.h | 22 ++++++ examples/GuiClient/profileDialog.ui | 132 +++++++++++++++++++++++++++++++++++ 4 files changed, 175 insertions(+), 3 deletions(-) create mode 100644 examples/GuiClient/profileDialog.cpp create mode 100644 examples/GuiClient/profileDialog.h create mode 100644 examples/GuiClient/profileDialog.ui (limited to 'examples/GuiClient') diff --git a/examples/GuiClient/GuiClient.pro b/examples/GuiClient/GuiClient.pro index ba06c3c7..da5a6970 100644 --- a/examples/GuiClient/GuiClient.pro +++ b/examples/GuiClient/GuiClient.pro @@ -21,7 +21,9 @@ SOURCES += main.cpp \ avatarWidget.cpp \ statusTextWidget.cpp \ customToolButton.cpp \ - vCardManager.cpp + vCardManager.cpp \ + profileDialog.cpp + HEADERS += messageGraphicsItem.h \ chatGraphicsScene.h \ chatGraphicsView.h \ @@ -39,11 +41,13 @@ HEADERS += messageGraphicsItem.h \ avatarWidget.h \ statusTextWidget.h \ customToolButton.h \ - vCardManager.h + vCardManager.h \ + profileDialog.h FORMS += mainDialog.ui \ chatDialog.ui \ - statusWidget.ui + statusWidget.ui \ + profileDialog.ui QT += network \ xml diff --git a/examples/GuiClient/profileDialog.cpp b/examples/GuiClient/profileDialog.cpp new file mode 100644 index 00000000..58d72449 --- /dev/null +++ b/examples/GuiClient/profileDialog.cpp @@ -0,0 +1,14 @@ +#include "profileDialog.h" +#include "ui_profileDialog.h" + +profileDialog::profileDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::profileDialog) +{ + ui->setupUi(this); +} + +profileDialog::~profileDialog() +{ + delete ui; +} diff --git a/examples/GuiClient/profileDialog.h b/examples/GuiClient/profileDialog.h new file mode 100644 index 00000000..264dd94b --- /dev/null +++ b/examples/GuiClient/profileDialog.h @@ -0,0 +1,22 @@ +#ifndef PROFILEDIALOG_H +#define PROFILEDIALOG_H + +#include + +namespace Ui { + class profileDialog; +} + +class profileDialog : public QDialog +{ + Q_OBJECT + +public: + explicit profileDialog(QWidget *parent = 0); + ~profileDialog(); + +private: + Ui::profileDialog *ui; +}; + +#endif // PROFILEDIALOG_H diff --git a/examples/GuiClient/profileDialog.ui b/examples/GuiClient/profileDialog.ui new file mode 100644 index 00000000..dfda1498 --- /dev/null +++ b/examples/GuiClient/profileDialog.ui @@ -0,0 +1,132 @@ + + + profileDialog + + + + 0 + 0 + 400 + 238 + + + + Dialog + + + + + + + + + + + 0 + 0 + + + + + 96 + 96 + + + + + 96 + 96 + + + + TextLabel + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + TextLabel + + + + + + + TextLabel + + + + + + + TextLabel + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close + + + + + + + + + buttonBox + accepted() + profileDialog + accept() + + + 343 + 215 + + + 301 + 191 + + + + + -- cgit v1.2.3