2 #include "ui_new_release_dialog.h" 4 #include <QDesktopServices> 6 #include <QDialogButtonBox> 12 setWindowFlags(Qt::WindowStaysOnTopHint);
14 connect(
ui->pushButtonWeb, &QPushButton::clicked,
this, [=] { QDesktopServices::openUrl(QUrl(url)); });
16 connect(
ui->buttonBox, &QDialogButtonBox::rejected,
this, [=] {
17 if (ui->dontShowAgain->isChecked())
20 settings.setValue(
"NewRelease/dontShowThisVersion", release);
24 ui->labelRelease->setText(release);
25 ui->labelTitle->setText(title);
Ui::NewReleaseDialog * ui
NewReleaseDialog(QWidget *parent, QString release, QString title, QString url)