forked from colinbourassa/memsgauge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aboutbox.h
44 lines (35 loc) · 848 Bytes
/
aboutbox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef ABOUTBOX_H
#define ABOUTBOX_H
#include <QDialog>
#include <QGridLayout>
#include <QPushButton>
#include <QLabel>
#include <QStyle>
#include <QString>
#include "rosco.h"
/**
* The "About" dialog that shows information about the program.
*/
class AboutBox : public QDialog
{
Q_OBJECT
public:
AboutBox(QStyle *parentStyle, QString title, librosco_version version, QWidget *parent);
private:
void setupWidgets();
QString makeVersionString(int maj, int min, int patch);
QStyle *m_style;
QGridLayout *m_grid;
librosco_version m_ver;
const QString m_urlString;
const QString m_urlLibString;
const QString m_aboutString;
QLabel *m_iconLabel;
QLabel *m_info;
QLabel *m_name;
QLabel *m_infoLib;
QLabel *m_url;
QLabel *m_urlLib;
QPushButton *m_ok;
};
#endif // ABOUTBOX_H