diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-06-24 14:36:38 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-24 07:44:28 -0700 |
commit | f3b04a88dffcda6cbe10be81d5c9613e0ab00c37 (patch) | |
tree | a8deb49502d1b4bdf9015b057acc8e25df920377 /qt-ui/about.h | |
parent | ef0272f5efb7cfd7d864dbe1f53b18348de305d3 (diff) | |
download | subsurface-f3b04a88dffcda6cbe10be81d5c9613e0ab00c37.tar.gz |
Add an 'About' dialog for the Qt UI
The dialog is similar to the one in the GTK version
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/about.h')
-rw-r--r-- | qt-ui/about.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/qt-ui/about.h b/qt-ui/about.h new file mode 100644 index 000000000..6636b0e33 --- /dev/null +++ b/qt-ui/about.h @@ -0,0 +1,26 @@ +#ifndef ABOUT_H +#define ABOUT_H + +#include <QDialog> +#include <QPushButton> + +namespace Ui { + class SubsurfaceAbout; +} + +class SubsurfaceAbout : public QDialog { + Q_OBJECT + +public: + static SubsurfaceAbout* instance(); +private slots: + void licenseClicked(); + void websiteClicked(); +private: + explicit SubsurfaceAbout(QWidget* parent = 0, Qt::WindowFlags f = 0); + QPushButton *licenseButton; + QPushButton *websiteButton; + Ui::SubsurfaceAbout *ui; +}; + +#endif |