From 320c83c069f5fb2adb7fa9deeef1e16fe55232ae Mon Sep 17 00:00:00 2001 From: John Fultz Date: Wed, 19 Jul 2023 22:30:09 -0500 Subject: Fix QMessageBox deprecations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- quacker/letterbox.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'quacker/letterbox.h') 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 #include +#include #include #include #include @@ -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; -- cgit v1.2.3