From: RĂ©mi Duraffort Date: Tue, 3 Aug 2010 22:29:17 +0000 (+0200) Subject: qt4: improve code readability. X-Git-Tag: 1.2.0-pre1~5561 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=daae8e520f9441631aed70863198bb2a44107d35 qt4: improve code readability. --- diff --git a/modules/gui/qt4/main_interface.hpp b/modules/gui/qt4/main_interface.hpp index e2a59852f1..d6a59512d9 100644 --- a/modules/gui/qt4/main_interface.hpp +++ b/modules/gui/qt4/main_interface.hpp @@ -214,13 +214,19 @@ private slots: void showBuffering( float ); - void resizeStack( int w, int h ) { + void resizeStack( int w, int h ) + { if( !isFullScreen() && !isMaximized() ) - if( b_minimalView ) resize( w, h ); /* Oh yes, it shouldn't + { + if( b_minimalView ) + resize( w, h ); /* Oh yes, it shouldn't be possible that size() - stackCentralW->size() < 0 since stackCentralW is contained in the QMW... */ - else resize( size() - stackCentralW->size() + QSize( w, h ) ); - debug(); } + else + resize( size() - stackCentralW->size() + QSize( w, h ) ); + } + debug(); + } void setVideoSize( unsigned int, unsigned int ); void setVideoFullScreen( bool );