From 0182e7e70e2d54885f6b8b110f63d9db80bf3101 Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Thu, 3 Oct 2024 20:32:43 +0200 Subject: [PATCH] Make about chat show up as fullscreen on iOS Fixes an overflow bug for the chat dialog on iOS. Related to: https://github.com/jamulussoftware/jamulus/pull/3343 --- src/chatdlg.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/chatdlg.cpp b/src/chatdlg.cpp index 9f4b551082..fb5c7a4480 100644 --- a/src/chatdlg.cpp +++ b/src/chatdlg.cpp @@ -72,6 +72,15 @@ CChatDlg::CChatDlg ( QWidget* parent ) : CBaseDlg ( parent, Qt::Window ) // use // Now tell the layout about the menu layout()->setMenuBar ( pMenu ); + //### 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 ###// + // Connections ------------------------------------------------------------- QObject::connect ( edtLocalInputText, &QLineEdit::textChanged, this, &CChatDlg::OnLocalInputTextTextChanged );