[vlmc-devel] Notify toolbar about fullscreen mode change
Pawel Golinski
git at videolan.org
Mon Mar 14 21:31:30 CET 2016
vlmc | branch: master | Pawel Golinski <golpaw1 at gmail.com> | Fri Mar 11 00:12:57 2016 +0100| [68459cad3c05f59b343367741fe7fa681e0feeea] | committer: Hugo Beauzée-Luyssen
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: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> https://code.videolan.org/videolan/vlmc/commit/68459cad3c05f59b343367741fe7fa681e0feeea
---
src/Gui/MainWindow.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index e7bc767..3f836bd 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -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;
}
More information about the Vlmc-devel
mailing list