Skip to content
Snippets Groups Projects
Commit 68459cad authored by Pawel Golinski's avatar Pawel Golinski Committed by Hugo Beauzée-Luyssen
Browse files

Notify toolbar about fullscreen mode change


Toolbar was not notified about user turning on/off
fullscreen mode without using toolbar button, which
caused it to show inconsistent state.

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 8aae4573
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,12 @@ MainWindow::changeEvent( QEvent *e )
m_ui.retranslateUi( this );
retranslateUi();
break;
case QEvent::WindowStateChange:
if ( isFullScreen() )
m_ui.actionFullscreen->setChecked( true );
else
m_ui.actionFullscreen->setChecked( false );
break;
default:
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment