26 this->summary = summary;
27 this->details = details;
28 this->checkboxLabel = checkboxLabel;
29 this->settingsKey = settingsKey;
37 auto settings =
new QSettings;
38 if (!settings->value(settingsKey,
true).toBool())
46 setWindowFlags(Qt::Sheet);
47 setWindowModality(Qt::WindowModal);
49 setTextFormat(Qt::RichText);
51 setInformativeText(
"<style>p{" + fonts->
getCSS(fonts->
dialogBodyFont()) +
"}</style>" + details);
52 setIcon(QMessageBox::Information);
54 QCheckBox *cb =
new QCheckBox(
this);
56 cb->setText(checkboxLabel);
60 connect(
this, &QMessageBox::finished, [=](){
62 settings->setValue(settingsKey,
false);