Skip to content

Commit

Permalink
iOS: Fix some Qt6 related UI bugs
Browse files Browse the repository at this point in the history
* Enforce fullscreen mode on mobile OS

* Unify iOS and Android logic
  • Loading branch information
ann0see committed May 20, 2023
1 parent 240d3f0 commit 5c11ddc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/chatdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ CChatDlg::CChatDlg ( QWidget* parent ) : CBaseDlg ( parent, Qt::Window ) // use
// Now tell the layout about the menu
layout()->setMenuBar ( pMenu );

#if defined( Q_OS_ANDROID ) || defined( ANDROID ) || defined( Q_OS_IOS )
// for the Android/iOS version maximize the window
setWindowState ( Qt::WindowMaximized );
#endif

// Connections -------------------------------------------------------------
QObject::connect ( edtLocalInputText, &QLineEdit::textChanged, this, &CChatDlg::OnLocalInputTextTextChanged );

Expand Down
5 changes: 5 additions & 0 deletions src/clientsettingsdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, CClientSettings* pNSet
layout()->setMenuBar ( pMenu );
#endif

#if defined( Q_OS_ANDROID ) || defined( ANDROID ) || defined( Q_OS_IOS )
// for the Android/iOS version maximize the window
setWindowState ( Qt::WindowMaximized );
#endif

// Add help text to controls -----------------------------------------------
// local audio input fader
QString strAudFader = "<b>" + tr ( "Local Audio Input Fader" ) + ":</b> " +
Expand Down
4 changes: 2 additions & 2 deletions src/connectdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ CConnectDlg::CConnectDlg ( CClientSettings* pNSetP, const bool bNewShowCompleteR
// setup timers
TimerInitialSort.setSingleShot ( true ); // only once after list request

#ifdef ANDROID
// for the android version maximize the window
#if defined( Q_OS_ANDROID ) || defined( ANDROID ) || defined( Q_OS_IOS )
// for the Android/iOS version maximize the window
setWindowState ( Qt::WindowMaximized );
#endif

Expand Down

0 comments on commit 5c11ddc

Please sign in to comment.