From d8912aa27315534889e270ee60c86b7f8e873190 Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Wed, 7 Aug 2024 22:40:36 +0200 Subject: [PATCH] Make about dialog show up as fullscreen on iOS Fixes an overflow bug for the about dialog on iOS. Related to: #3343 --- src/util.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/util.cpp b/src/util.cpp index cdbcee448e..8dd4621db2 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -771,6 +771,15 @@ CAboutDlg::CAboutDlg ( QWidget* parent ) : CBaseDlg ( parent ) // set window title setWindowTitle ( tr ( "About %1" ).arg ( APP_NAME ) ); + + //### TODO: BEGIN ###// + // Test if the window also needs to be maximized on Android. + // Android has not been tested +# if defined( ANDROID ) || defined( Q_OS_IOS ) + // for mobile version maximize the window + setWindowState ( Qt::WindowMaximized ); +# endif + //### TODO: END ###// } // Licence dialog --------------------------------------------------------------