From ca99897dbd880fee2f7a7d77e4db8eef1fd00fe9 Mon Sep 17 00:00:00 2001 From: Toni Jussila Date: Thu, 6 May 2010 09:37:24 +0300 Subject: [PATCH] Profile dialog added. --- Client/profiledialog.cpp | 26 ++++++++++++++++++++++++++ Client/profiledialog.h | 23 +++++++++++++++++++++++ Client/profiledialog.ui | 19 +++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 Client/profiledialog.cpp create mode 100644 Client/profiledialog.h create mode 100644 Client/profiledialog.ui diff --git a/Client/profiledialog.cpp b/Client/profiledialog.cpp new file mode 100644 index 0000000..f6ae507 --- /dev/null +++ b/Client/profiledialog.cpp @@ -0,0 +1,26 @@ +#include "profiledialog.h" +#include "ui_profiledialog.h" + +ProfileDialog::ProfileDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::ProfileDialog) +{ + ui->setupUi(this); +} + +ProfileDialog::~ProfileDialog() +{ + delete ui; +} + +void ProfileDialog::changeEvent(QEvent *e) +{ + QDialog::changeEvent(e); + switch (e->type()) { + case QEvent::LanguageChange: + ui->retranslateUi(this); + break; + default: + break; + } +} diff --git a/Client/profiledialog.h b/Client/profiledialog.h new file mode 100644 index 0000000..7a0451a --- /dev/null +++ b/Client/profiledialog.h @@ -0,0 +1,23 @@ +#ifndef PROFILEDIALOG_H +#define PROFILEDIALOG_H + +#include + +namespace Ui { + class ProfileDialog; +} + +class ProfileDialog : public QDialog { + Q_OBJECT +public: + ProfileDialog(QWidget *parent = 0); + ~ProfileDialog(); + +protected: + void changeEvent(QEvent *e); + +private: + Ui::ProfileDialog *ui; +}; + +#endif // PROFILEDIALOG_H diff --git a/Client/profiledialog.ui b/Client/profiledialog.ui new file mode 100644 index 0000000..153e5bf --- /dev/null +++ b/Client/profiledialog.ui @@ -0,0 +1,19 @@ + + + ProfileDialog + + + + 0 + 0 + 800 + 380 + + + + Dialog + + + + + -- 1.7.9.5