About dialog
authorpaul romanchenko <paulaner@gmail.com>
Fri, 17 Sep 2010 14:50:24 +0000 (18:50 +0400)
committerpaul romanchenko <paulaner@gmail.com>
Fri, 17 Sep 2010 14:50:24 +0000 (18:50 +0400)
about.cpp [new file with mode: 0644]
about.h [new file with mode: 0644]
about.ui [new file with mode: 0644]

diff --git a/about.cpp b/about.cpp
new file mode 100644 (file)
index 0000000..5bea58a
--- /dev/null
+++ b/about.cpp
@@ -0,0 +1,14 @@
+#include "about.h"
+#include "ui_about.h"
+
+About::About(QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::About)
+{
+    ui->setupUi(this);
+}
+
+About::~About()
+{
+    delete ui;
+}
diff --git a/about.h b/about.h
new file mode 100644 (file)
index 0000000..ce1e3d9
--- /dev/null
+++ b/about.h
@@ -0,0 +1,22 @@
+#ifndef ABOUT_H
+#define ABOUT_H
+
+#include <QDialog>
+
+namespace Ui {
+    class About;
+}
+
+class About : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit About(QWidget *parent = 0);
+    ~About();
+
+private:
+    Ui::About *ui;
+};
+
+#endif // ABOUT_H
diff --git a/about.ui b/about.ui
new file mode 100644 (file)
index 0000000..397822b
--- /dev/null
+++ b/about.ui
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>About</class>
+ <widget class="QDialog" name="About">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>778</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <layout class="QHBoxLayout" name="horizontalLayout">
+   <item>
+    <widget class="QLabel" name="label">
+     <property name="font">
+      <font>
+       <pointsize>14</pointsize>
+      </font>
+     </property>
+     <property name="text">
+      <string>Puzzle game Vexed. Clone of PalmOS Vexed game. Author Paul Romanchenko (paulaner@gmail.com).</string>
+     </property>
+     <property name="wordWrap">
+      <bool>true</bool>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <spacer name="horizontalSpacer">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>40</width>
+       <height>20</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item>
+    <widget class="QPushButton" name="pushButton">
+     <property name="text">
+      <string>Ok</string>
+     </property>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>pushButton</sender>
+   <signal>clicked()</signal>
+   <receiver>About</receiver>
+   <slot>accept()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>740</x>
+     <y>156</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>739</x>
+     <y>195</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>