aboutsummaryrefslogtreecommitdiffstats
path: root/src/aboutdialog.cpp
blob: 0a96e59c8996596b7fdf71e3a9a0c934c0357d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "aboutdialog.h"
#include <qsizepolicy.h>

AboutDialog::AboutDialog(QWidget* parent)
    : QDialog(parent, Qt::Dialog), ui(new Ui::AboutDialog)
{
    ui->setupUi(this);

    // TODO: show version or git build in about text
    //ui->label->setText(ui->label->text().arg("aaa"));

    // I have been saved by https://stackoverflow.com/a/22565649
    // It's not more complicated than that… thankfully
    adjustSize();
    setFixedSize(sizeHint());
}

AboutDialog::~AboutDialog() {
    delete ui;
}