]> git.sesse.net Git - nageru/blobdiff - shared/aboutdialog.cpp
Give Futatabi an about/license dialog, and the same manual link as Nageru.
[nageru] / shared / aboutdialog.cpp
similarity index 63%
rename from nageru/aboutdialog.cpp
rename to shared/aboutdialog.cpp
index def415111aa664cb530b1a5bd74e7dae1fe14926..35663b9cbbdf6390511d598b708b61d0828e7e66 100644 (file)
@@ -6,12 +6,14 @@
 
 using namespace std;
 
-AboutDialog::AboutDialog()
+AboutDialog::AboutDialog(const string &program, const string &subheading)
        : ui(new Ui::AboutDialog)
 {
        ui->setupUi(this);
        QString str = ui->header->text();
        str.replace("@NAGERU_VERSION@", NAGERU_VERSION);
+       str.replace("@PROGRAM@", QString::fromStdString(program));
+       str.replace("@SUBHEADING@", QString::fromStdString(subheading));
        ui->header->setText(str);
 
        connect(ui->button_box, &QDialogButtonBox::accepted, [this]{ this->close(); });