From 7f6e4dc14f3f26cdf74558c439baa9550df7570d Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Fri, 13 Mar 2015 03:44:51 +0000 Subject: [PATCH] Improvements in PlaYUVerStream and QualityMeasurements --- app/QualityMeasurementSidebar.cpp | 4 ++++ app/SubWindowHandle.cpp | 3 --- app/VideoSubWindow.cpp | 3 +++ lib/PlaYUVerStream.cpp | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/QualityMeasurementSidebar.cpp b/app/QualityMeasurementSidebar.cpp index 3b2cf01..e140dd4 100644 --- a/app/QualityMeasurementSidebar.cpp +++ b/app/QualityMeasurementSidebar.cpp @@ -138,6 +138,10 @@ Void QualityMeasurementSidebar::updateSubWindowList() for( Int i = 0; i < subWindowList.size(); i++ ) { pcVideoSubWindow = qobject_cast( subWindowList.at( i ) ); + if( m_pcCurrentVideoSubWindow == pcVideoSubWindow ) + { + continue; + } if( m_pcCurrentVideoSubWindow ) { if( !m_pcCurrentVideoSubWindow->getCurrFrame()->haveSameFmt( pcVideoSubWindow->getCurrFrame() ) ) diff --git a/app/SubWindowHandle.cpp b/app/SubWindowHandle.cpp index 0a304fb..7830ba9 100644 --- a/app/SubWindowHandle.cpp +++ b/app/SubWindowHandle.cpp @@ -42,9 +42,6 @@ SubWindowHandle::SubWindowHandle( QWidget * parent, UInt category ) : connect( horizontalScrollBar(), SIGNAL( actionTriggered( int ) ), this, SLOT( updateCurScrollValues() ) ); connect( verticalScrollBar(), SIGNAL( actionTriggered( int ) ), this, SLOT( updateCurScrollValues() ) ); - setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff ); - setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOff ); - setWidgetResizable( true ); m_uiCategory = category; diff --git a/app/VideoSubWindow.cpp b/app/VideoSubWindow.cpp index 3e27fa2..f3c049b 100644 --- a/app/VideoSubWindow.cpp +++ b/app/VideoSubWindow.cpp @@ -97,6 +97,9 @@ VideoSubWindow::VideoSubWindow( enum VideoSubWindowCategories category, QWidget connect( m_cViewArea, SIGNAL( selectionChanged( QRect ) ), this, SLOT( updateSelectedArea( QRect ) ) ); connect( m_cViewArea, SIGNAL( positionChanged( const QPoint & ) ), this, SLOT( updatePixelValueStatusBar( const QPoint & ) ) ); + setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff ); + setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOff ); + // Define the cViewArea as the widget inside the scroll area m_cViewArea->setMinimumSize( size() ); setWidget( m_cViewArea ); diff --git a/lib/PlaYUVerStream.cpp b/lib/PlaYUVerStream.cpp index eb212e6..48fafec 100644 --- a/lib/PlaYUVerStream.cpp +++ b/lib/PlaYUVerStream.cpp @@ -700,8 +700,8 @@ Bool PlaYUVerStream::seekInputRelative( Bool bIsFoward ) Bool bRet = false; if( bIsFoward ) { - readFrame(); bRet = !setNextFrame(); + readFrame(); } else {