diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-19 17:10:30 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-19 17:10:30 -0400 |
| commit | 94b0c4634290b41398915c6635982dc7b3928f60 (patch) | |
| tree | 6c0b0a8942c98c5d8519e954b7db97351d3fc9f1 /src/settingsdialogworkarounds.h | |
| parent | cbfd3692ce95f43daa081c5f16a5c9160cb7c459 (diff) | |
TaskDialog for blacklisted, with button to change the blacklist
Diffstat (limited to 'src/settingsdialogworkarounds.h')
| -rw-r--r-- | src/settingsdialogworkarounds.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/settingsdialogworkarounds.h b/src/settingsdialogworkarounds.h index d5d6815f..cffc54a0 100644 --- a/src/settingsdialogworkarounds.h +++ b/src/settingsdialogworkarounds.h @@ -8,6 +8,18 @@ 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: @@ -16,9 +28,6 @@ private: void on_bsaDateBtn_clicked(); void on_execBlacklistBtn_clicked(); void on_resetGeometryBtn_clicked(); - - QString getExecutableBlacklist() { return m_ExecutableBlacklist; } - void setExecutableBlacklist(QString blacklist) { m_ExecutableBlacklist = blacklist; } }; #endif // SETTINGSDIALOGWORKAROUNDS_H |
