Format code
This commit is contained in:
@@ -136,7 +136,7 @@ public:
|
||||
|
||||
protected:
|
||||
void focusInEvent( QFocusEvent* event );
|
||||
virtual void closeEvent( QCloseEvent* event );
|
||||
virtual void closeEvent( QCloseEvent* event );
|
||||
|
||||
Void setWidget( QWidget* widget );
|
||||
|
||||
|
||||
+2
-3
@@ -345,10 +345,9 @@ Void VideoHandle::update()
|
||||
|
||||
m_pcFrameNumInfo->setCurrFrameNum( frame_num );
|
||||
|
||||
|
||||
m_pcFrameSlider->blockSignals( true ); // Disable signals otherwise it will loop this function
|
||||
m_pcFrameSlider->blockSignals( true ); // Disable signals otherwise it will loop this function
|
||||
m_pcFrameSlider->setValue( frame_num );
|
||||
m_pcFrameSlider->blockSignals( false );
|
||||
m_pcFrameSlider->blockSignals( false );
|
||||
|
||||
if( m_pcCurrentVideoSubWindow->isPlaying() )
|
||||
{
|
||||
|
||||
@@ -198,8 +198,8 @@ VideoSubWindow::~VideoSubWindow()
|
||||
|
||||
Void VideoSubWindow::closeEvent( QCloseEvent* event )
|
||||
{
|
||||
stop();
|
||||
SubWindowAbstract::closeEvent( event );
|
||||
stop();
|
||||
SubWindowAbstract::closeEvent( event );
|
||||
}
|
||||
|
||||
Void VideoSubWindow::keyPressEvent( QKeyEvent* event )
|
||||
@@ -798,8 +798,8 @@ Void VideoSubWindow::seekRelativeEvent( Bool bIsFoward )
|
||||
Void VideoSubWindow::stop()
|
||||
{
|
||||
#ifndef QT_NO_CONCURRENT
|
||||
m_cRefreshResult.waitForFinished();
|
||||
m_cReadResult.waitForFinished();
|
||||
m_cRefreshResult.waitForFinished();
|
||||
m_cReadResult.waitForFinished();
|
||||
#endif
|
||||
m_bIsPlaying = false;
|
||||
seekAbsoluteEvent( 0 );
|
||||
|
||||
@@ -204,7 +204,7 @@ private:
|
||||
protected:
|
||||
Void keyPressEvent( QKeyEvent* event );
|
||||
Void resizeEvent( QResizeEvent* event );
|
||||
Void closeEvent( QCloseEvent *event );
|
||||
Void closeEvent( QCloseEvent* event );
|
||||
|
||||
public Q_SLOTS:
|
||||
void updateWindowOnTimeout();
|
||||
|
||||
@@ -374,8 +374,8 @@ Bool StreamHandlerLibav::write( PlaYUVerFrame* pcFrame )
|
||||
|
||||
Bool StreamHandlerLibav::seek( UInt64 iFrameNum )
|
||||
{
|
||||
if( m_uiTotalNumberFrames == 1 )
|
||||
return true;
|
||||
if( m_uiTotalNumberFrames == 1 )
|
||||
return true;
|
||||
|
||||
if( m_uiCurrFrameFileIdx == iFrameNum )
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user