From b7365875a3ea183f0c083a0bee2fb5c8f670a842 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sat, 22 Mar 2014 19:37:17 +0000 Subject: [PATCH] Fix inital image size --- source/SubWindowHandle.cpp | 2 +- source/ViewArea.cpp | 4 ++-- source/plaYUVerApp.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/SubWindowHandle.cpp b/source/SubWindowHandle.cpp index 78fe622..c8b6229 100644 --- a/source/SubWindowHandle.cpp +++ b/source/SubWindowHandle.cpp @@ -102,7 +102,7 @@ bool SubWindowHandle::loadFile( const QString &fileName ) QApplication::restoreOverrideCursor(); refreshFrame(); - normalSize(); + //normalSize(); m_cWindowName = QString( " " ); m_cWindowName = m_pCurrStream->getStreamInformationString(); diff --git a/source/ViewArea.cpp b/source/ViewArea.cpp index 3cbe445..a474a2d 100755 --- a/source/ViewArea.cpp +++ b/source/ViewArea.cpp @@ -99,8 +99,8 @@ void ViewArea::clearMask() void ViewArea::setZoomFactor( double f ) { - if( f == m_zoomFactor ) - return; + //if( f == m_zoomFactor ) + //return; m_zoomFactor = f; emit( zoomFactorChanged( m_zoomFactor ) ); diff --git a/source/plaYUVerApp.cpp b/source/plaYUVerApp.cpp index c930520..f26352e 100644 --- a/source/plaYUVerApp.cpp +++ b/source/plaYUVerApp.cpp @@ -126,7 +126,7 @@ void plaYUVerApp::open() statusBar()->showMessage( tr( "File loaded" ), 2000 ); interfaceChild->show(); connect( interfaceChild->getViewArea(), SIGNAL( positionChanged(const QPoint &) ), this, SLOT( updatePixelValueStatusBar(const QPoint &) ) ); - + interfaceChild->zoomToFit(); } else {