mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
ef0272f5ef
commit
f3b04a88df
5 changed files with 211 additions and 1 deletions
26
qt-ui/about.h
Normal file
26
qt-ui/about.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue