diff options
-rw-r--r-- | vrplayer/dlgabout.cpp | 20 | ||||
-rw-r--r-- | vrplayer/dlgabout.h | 25 | ||||
-rw-r--r-- | vrplayer/dlgabout.ui | 45 |
3 files changed, 90 insertions, 0 deletions
diff --git a/vrplayer/dlgabout.cpp b/vrplayer/dlgabout.cpp new file mode 100644 index 00000000..b6ec55ee --- /dev/null +++ b/vrplayer/dlgabout.cpp @@ -0,0 +1,20 @@ +#include "dlgabout.h" +#include "ui_dlgabout.h" + +DlgAbout::DlgAbout(QWidget *parent) : + QDialog(parent), + ui(new Ui::DlgAbout) +{ + ui->setupUi(this); + connect(ui->okButton, SIGNAL(clicked()), this, SLOT(onOk())); +} + +DlgAbout::~DlgAbout() +{ + delete ui; +} + +void DlgAbout::onOk() +{ + this->done(0); +} diff --git a/vrplayer/dlgabout.h b/vrplayer/dlgabout.h new file mode 100644 index 00000000..4795e2fe --- /dev/null +++ b/vrplayer/dlgabout.h @@ -0,0 +1,25 @@ +#ifndef DLGABOUT_H +#define DLGABOUT_H + +#include <QDialog> + +namespace Ui { +class DlgAbout; +} + +class DlgAbout : public QDialog +{ + Q_OBJECT + +public: + explicit DlgAbout(QWidget *parent = 0); + ~DlgAbout(); + +private: + Ui::DlgAbout *ui; + +private slots: + void onOk(); +}; + +#endif // DLGABOUT_H diff --git a/vrplayer/dlgabout.ui b/vrplayer/dlgabout.ui new file mode 100644 index 00000000..8b2c38e5 --- /dev/null +++ b/vrplayer/dlgabout.ui @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>DlgAbout</class> + <widget class="QDialog" name="DlgAbout"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>288</width> + <height>168</height> + </rect> + </property> + <property name="windowTitle"> + <string>Dialog</string> + </property> + <widget class="QLabel" name="label"> + <property name="geometry"> + <rect> + <x>70</x> + <y>60</y> + <width>151</width> + <height>17</height> + </rect> + </property> + <property name="text"> + <string>VRPlayer v1.2</string> + </property> + </widget> + <widget class="QPushButton" name="okButton"> + <property name="geometry"> + <rect> + <x>180</x> + <y>120</y> + <width>94</width> + <height>27</height> + </rect> + </property> + <property name="text"> + <string>OK</string> + </property> + </widget> + </widget> + <resources/> + <connections/> +</ui> |