Skip to content

Commit d8912aa

Browse files
committed
Make about dialog show up as fullscreen on iOS
Fixes an overflow bug for the about dialog on iOS. Related to: #3343
1 parent 4652c90 commit d8912aa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/util.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,15 @@ CAboutDlg::CAboutDlg ( QWidget* parent ) : CBaseDlg ( parent )
771771

772772
// set window title
773773
setWindowTitle ( tr ( "About %1" ).arg ( APP_NAME ) );
774+
775+
//### TODO: BEGIN ###//
776+
// Test if the window also needs to be maximized on Android.
777+
// Android has not been tested
778+
# if defined( ANDROID ) || defined( Q_OS_IOS )
779+
// for mobile version maximize the window
780+
setWindowState ( Qt::WindowMaximized );
781+
# endif
782+
//### TODO: END ###//
774783
}
775784

776785
// Licence dialog --------------------------------------------------------------

0 commit comments

Comments
 (0)