parent
6709525a8a
commit
6794d6e244
@ -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);
|
||||
}
|
@ -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
|
@ -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>
|
Loading…
Reference in new issue