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/letterbox.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/letterbox.h')
-rw-r--r-- | quacker/letterbox.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quacker/letterbox.h b/quacker/letterbox.h index 703b1be..66de0a5 100644 --- a/quacker/letterbox.h +++ b/quacker/letterbox.h @@ -21,6 +21,7 @@ #include <QElapsedTimer> #include <QMainWindow> +#include <QMessageBox> #include <QValidator> #include <QTextEdit> #include <QTime> @@ -189,7 +190,7 @@ protected: static Letterbox *m_self; // returns 0 for save, 1 for discard, 2 for cancel - int askToSave(); + QMessageBox::StandardButton askToSave(); // used to know when to update UI when querying anagrammer bool m_initializationChuu; |