Pan all images synchronously. First version.

This commit is contained in:
Luis Lucas committed 2015-01-18 01:42:31 +00:00
1 parent 92775fac48
commit bb42e04dbf
4 files changed
+26 -3

No files matched your search

+20 -1
View File
@@ -196,6 +196,7 @@ Void plaYUVerApp::loadFile( QString fileName, PlaYUVerStreamInfo* pStreamInfo )
connect( subWindow, SIGNAL( updateStatusBar( const QString& ) ), this, SLOT( updateStatusBar( const QString& ) ) );
connect( subWindow, SIGNAL( zoomChangedOnSubWindow() ), this, SLOT( updateZoomFactorSBox() ) );
connect( subWindow, SIGNAL( scrollBarMoved( const QPoint ) ), this, SLOT( moveAllScrollBars( const QPoint ) ) );
videoSubWindow->zoomToFit();
videoSubWindow->getViewArea()->setTool( m_appTool );
@@ -422,7 +423,10 @@ Void plaYUVerApp::zoomToFactorAll( double factor )
for( Int i = 0; i < mdiArea->subWindowList().size(); i++ )
{
subWindow = qobject_cast<SubWindowHandle *>( mdiArea->subWindowList().at( i ) );
subWindow->zoomToFactor(factor);
if( m_pcCurrentSubWindow == subWindow )
continue;
else
subWindow->zoomToFactor(factor);
}
}
@@ -459,6 +463,21 @@ Void plaYUVerApp::updateZoomFactorSBox()
}
}
Void plaYUVerApp::moveAllScrollBars( const QPoint offset )
{
SubWindowHandle *subWindow;
for( Int i = 0; i < mdiArea->subWindowList().size(); i++ )
{
subWindow = qobject_cast<SubWindowHandle *>( mdiArea->subWindowList().at( i ) );
if( m_pcCurrentSubWindow == subWindow )
continue;
else
subWindow->adjustScrollBarByOffset(offset);
}
}
// ----------------------- Drag and drop functions ----------------------
Void plaYUVerApp::dragEnterEvent( QDragEnterEvent *event )