From e4c734f4766ced92ccd19a9a9808d0ec34c8e985 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 4d7adcfd5c..bab1a4d0d2 100644 --- a/src/chatdlg.cpp +++ b/src/chatdlg.cpp @@ -71,6 +71,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 );