51 bool hasCheckbox = ! settingsKey.isEmpty() && ! checkboxLabel.isEmpty();
53 QSettings *settings =
nullptr;
56 settings =
new QSettings;
57 if (!settings->value(settingsKey,
true).toBool())
66 setWindowFlags(Qt::Sheet);
67 setWindowModality(Qt::WindowModal);
69 setTextFormat(Qt::RichText);
71 setInformativeText(
"<style>p{" + fonts->
getCSS(fonts->
dialogBodyFont()) +
"}</style>" + details);
72 setIcon(QMessageBox::Information);
75 setStyleSheet(
"QLabel{min-width: 410px;}");
77 QCheckBox *cb =
nullptr;
80 cb =
new QCheckBox(
this);
82 cb->setText(checkboxLabel);
89 connect(
this, &QMessageBox::finished, [=](){
91 settings->setValue(settingsKey,
false);