[vlc-devel] commit: Use !isVisible when needed ISO isHidden (Jean-Baptiste Kempf )
git version control
git at videolan.org
Sat Feb 28 16:43:30 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Feb 28 16:19:50 2009 +0100| [86de3606cf515bf0480dd567f31e100a4d563a23] | committer: Jean-Baptiste Kempf
Use !isVisible when needed ISO isHidden
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86de3606cf515bf0480dd567f31e100a4d563a23
---
modules/gui/qt4/components/interface_widgets.cpp | 2 +-
modules/gui/qt4/main_interface.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index e9a26db..dca2b0c 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -127,7 +127,7 @@ void VideoWidget::SetSizing( unsigned int w, unsigned int h )
msg_Dbg( p_intf, "Video is resizing to: %i %i", w, h );
videoSize.rwidth() = w;
videoSize.rheight() = h;
- if( isHidden() ) show();
+ if( !isVisible() ) show();
updateGeometry(); // Needed for deinterlace
}
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index c8f903e..1234634 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -1129,7 +1129,7 @@ void MainInterface::customEvent( QEvent *event )
void MainInterface::keyPressEvent( QKeyEvent *e )
{
if( ( e->modifiers() & Qt::ControlModifier ) && ( e->key() == Qt::Key_H )
- && menuBar()->isHidden() )
+ && !menuBar()->isVisible() )
{
toggleMinimalView( false );
e->accept();
More information about the vlc-devel
mailing list