Commit 657a734b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: connect TimeLabel to the inputStateChange to display the buffering status.

DOesn't show anything yet.
parent 669634fb
......@@ -486,6 +486,8 @@ TimeLabel::TimeLabel( intf_thread_t *_p_intf ) :QLabel(), p_intf( _p_intf )
setToolTip( qtr( "Toggle between elapsed and remaining time" ) );
CONNECT( THEMIM->getIM(), statusChanged( int ),
this, setStatus( int ) );
CONNECT( THEMIM->getIM(), positionUpdated( float, int, int ),
this, setDisplayPosition( float, int, int ) );
}
......@@ -511,6 +513,14 @@ void TimeLabel::toggleTimeDisplay()
b_remainingTime = !b_remainingTime;
}
void TimeLabel::setStatus( int i_status )
{
msg_Warn( p_intf, "Status: %i", i_status );
if( i_status == OPENING_S )
setText( "Buffering" );
}
bool VolumeClickHandler::eventFilter( QObject *obj, QEvent *e )
{
if (e->type() == QEvent::MouseButtonPress )
......
......@@ -159,6 +159,7 @@ signals:
void timeLabelDoubleClicked();
private slots:
void setDisplayPosition( float pos, int time, int length );
void setStatus( int i_status );
};
class SpeedLabel : public QLabel
......
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