Profile dialog added.
authorToni Jussila <toni.jussila@fudeco.com>
Thu, 6 May 2010 06:37:24 +0000 (09:37 +0300)
committerToni Jussila <toni.jussila@fudeco.com>
Thu, 6 May 2010 06:37:24 +0000 (09:37 +0300)
Client/profiledialog.cpp [new file with mode: 0644]
Client/profiledialog.h [new file with mode: 0644]
Client/profiledialog.ui [new file with mode: 0644]

diff --git a/Client/profiledialog.cpp b/Client/profiledialog.cpp
new file mode 100644 (file)
index 0000000..f6ae507
--- /dev/null
@@ -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 (file)
index 0000000..7a0451a
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef PROFILEDIALOG_H
+#define PROFILEDIALOG_H
+
+#include <QDialog>
+
+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 (file)
index 0000000..153e5bf
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ProfileDialog</class>
+ <widget class="QDialog" name="ProfileDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>800</width>
+    <height>380</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>