diff options
author | John Fultz <jfultz@wolfram.com> | 2023-07-19 22:30:09 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2023-07-19 22:38:25 -0500 |
commit | 320c83c069f5fb2adb7fa9deeef1e16fe55232ae (patch) | |
tree | 963d585a2825897e40ce6d4a17ab6e1cc479f0cb /quacker/quacker.h | |
parent | eb8deb67284b5950a4748a091f52d1eb11284c39 (diff) |
Fix QMessageBox deprecations.
Qt6 complains about the versions of the static function signatures
we’re using for generating various QMessageBoxes.
Except for the “Show plaintext board” dialog, which seems to
be having some “special” issues in Qt6.
Diffstat (limited to 'quacker/quacker.h')
-rw-r--r-- | quacker/quacker.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quacker/quacker.h b/quacker/quacker.h index 3bfeb38..83813c7 100644 --- a/quacker/quacker.h +++ b/quacker/quacker.h @@ -23,6 +23,7 @@ #include <QMainWindow> #include <QMap> +#include <QMessageBox> #include <datamanager.h> #include "oppothread.h" @@ -252,7 +253,7 @@ private: void loadSettings(); // returns 0 for save, 1 for discard, 2 for cancel - int askToSave(); + QMessageBox::StandardButton askToSave(); // returns true if user wants to make play anyway bool askToCarryOn(const QString &text); |