Skip to content

Commit

Permalink
Make about chat show up as fullscreen on iOS
Browse files Browse the repository at this point in the history
Fixes an overflow bug for the chat dialog on iOS.

Related to: #3343
  • Loading branch information
ann0see committed Oct 3, 2024
1 parent 08b404c commit 0182e7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/chatdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 0182e7e

Please sign in to comment.