Commit 56c0cb19 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - cleanup.

parent c7023526
...@@ -265,17 +265,14 @@ AdvControlsWidget::~AdvControlsWidget() ...@@ -265,17 +265,14 @@ AdvControlsWidget::~AdvControlsWidget()
void AdvControlsWidget::enableInput( bool enable ) void AdvControlsWidget::enableInput( bool enable )
{ {
// slowerButton->setEnabled( enable );
ABButton->setEnabled( enable ); ABButton->setEnabled( enable );
recordButton->setEnabled( enable ); recordButton->setEnabled( enable );
normalButton->setEnabled( enable ); normalButton->setEnabled( enable );
// fasterButton->setEnabled( enable );
} }
void AdvControlsWidget::enableVideo( bool enable ) void AdvControlsWidget::enableVideo( bool enable )
{ {
snapshotButton->setEnabled( enable ); snapshotButton->setEnabled( enable );
frameButton->setEnabled( enable ); frameButton->setEnabled( enable );
//fullscreenButton->setEnabled( enable );
} }
void AdvControlsWidget::normal() void AdvControlsWidget::normal()
...@@ -339,7 +336,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) : ...@@ -339,7 +336,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) :
advControls = new AdvControlsWidget( p_intf ); advControls = new AdvControlsWidget( p_intf );
controlLayout->addWidget( advControls, 1, 3, 2, 5, Qt::AlignBottom ); controlLayout->addWidget( advControls, 1, 3, 2, 5, Qt::AlignBottom );
if( !b_advancedVisible ) advControls->hide(); if( !b_advancedVisible ) advControls->hide();
//THIS should be removed. need_components_update = true; //THIS should be removed. need_components_update = true;
/** Disc and Menus handling */ /** Disc and Menus handling */
discFrame = new QFrame( this ); discFrame = new QFrame( this );
...@@ -387,7 +384,6 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) : ...@@ -387,7 +384,6 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) :
QSizePolicy sizePolicy( QSizePolicy::Maximum, QSizePolicy::Fixed ); QSizePolicy sizePolicy( QSizePolicy::Maximum, QSizePolicy::Fixed );
sizePolicy.setHorizontalStretch( 0 ); sizePolicy.setHorizontalStretch( 0 );
sizePolicy.setVerticalStretch( 0 ); sizePolicy.setVerticalStretch( 0 );
// sizePolicy.setHeightForWidth( playButton->sizePolicy().hasHeightForWidth() );
/* Play */ /* Play */
playButton = new QPushButton; playButton = new QPushButton;
...@@ -451,7 +447,6 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) : ...@@ -451,7 +447,6 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) :
/** Playlist Button **/ /** Playlist Button **/
playlistButton = new QPushButton; playlistButton = new QPushButton;
setupSmallButton( playlistButton ); setupSmallButton( playlistButton );
controlLayout->addWidget( playlistButton, 3, 11 ); controlLayout->addWidget( playlistButton, 3, 11 );
/** extended Settings **/ /** extended Settings **/
...@@ -585,8 +580,8 @@ void ControlsWidget::updateOnTimer() ...@@ -585,8 +580,8 @@ void ControlsWidget::updateOnTimer()
/* Activate the interface buttons according to the presence of the input */ /* Activate the interface buttons according to the presence of the input */
enableInput( THEMIM->getIM()->hasInput() ); enableInput( THEMIM->getIM()->hasInput() );
enableVideo( true );
//enableVideo( THEMIM->getIM()->hasVideo() ); //enableVideo( THEMIM->getIM()->hasVideo() );
enableVideo( true );
} }
void ControlsWidget::setStatus( int status ) void ControlsWidget::setStatus( int status )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment