summaryrefslogtreecommitdiff
path: root/src/settingsdialogworkarounds.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/settingsdialogworkarounds.h')
-rw-r--r--src/settingsdialogworkarounds.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/settingsdialogworkarounds.h b/src/settingsdialogworkarounds.h
new file mode 100644
index 00000000..cffc54a0
--- /dev/null
+++ b/src/settingsdialogworkarounds.h
@@ -0,0 +1,33 @@
+#ifndef SETTINGSDIALOGWORKAROUNDS_H
+#define SETTINGSDIALOGWORKAROUNDS_H
+
+#include "settings.h"
+#include "settingsdialog.h"
+
+class WorkaroundsSettingsTab : public SettingsTab
+{
+public:
+ WorkaroundsSettingsTab(Settings& settings, SettingsDialog& dialog);
+
+ // shows the blacklist dialog from the given settings, and changes the
+ // settings when the user accepts it
+ //
+ static bool changeBlacklistNow(QWidget* parent, Settings& settings);
+
+ // shows the blacklist dialog from the given string and returns the new
+ // blacklist if the user accepted it
+ //
+ static std::optional<QString> changeBlacklistLater(
+ QWidget* parent, const QString& current);
+
+ void update();
+
+private:
+ QString m_ExecutableBlacklist;
+
+ void on_bsaDateBtn_clicked();
+ void on_execBlacklistBtn_clicked();
+ void on_resetGeometryBtn_clicked();
+};
+
+#endif // SETTINGSDIALOGWORKAROUNDS_H