1 #include "aboutdialog.h"
3 #include <QDialogButtonBox>
5 #include "ui_aboutdialog.h"
9 AboutDialog::AboutDialog(const string &program, const string &subheading)
10 : ui(new Ui::AboutDialog)
13 QString str = ui->header->text();
14 str.replace("@NAGERU_VERSION@", NAGERU_VERSION);
15 str.replace("@PROGRAM@", QString::fromStdString(program));
16 str.replace("@SUBHEADING@", QString::fromStdString(subheading));
17 ui->header->setText(str);
19 connect(ui->button_box, &QDialogButtonBox::accepted, [this]{ this->close(); });