]> git.sesse.net Git - nageru/blob - nageru/aboutdialog.cpp
Make the Nageru version settable from the Meson configuration.
[nageru] / nageru / aboutdialog.cpp
1 #include "aboutdialog.h"
2
3 #include <QDialogButtonBox>
4
5 #include "ui_aboutdialog.h"
6
7 using namespace std;
8
9 AboutDialog::AboutDialog()
10         : ui(new Ui::AboutDialog)
11 {
12         ui->setupUi(this);
13         QString str = ui->header->text();
14         str.replace("@NAGERU_VERSION@", NAGERU_VERSION);
15         ui->header->setText(str);
16
17         connect(ui->button_box, &QDialogButtonBox::accepted, [this]{ this->close(); });
18 }
19