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/quacker.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'quacker/quacker.h') 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 #include +#include #include #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); -- cgit v1.2.3