Fix inital image size
This commit is contained in:
1 parent
473488bb1d
commit
b7365875a3
3 files changed
+4
-4
No files matched your search
@@ -102,7 +102,7 @@ bool SubWindowHandle::loadFile( const QString &fileName )
|
|||||||
QApplication::restoreOverrideCursor();
|
QApplication::restoreOverrideCursor();
|
||||||
|
|
||||||
refreshFrame();
|
refreshFrame();
|
||||||
normalSize();
|
//normalSize();
|
||||||
|
|
||||||
m_cWindowName = QString( " " );
|
m_cWindowName = QString( " " );
|
||||||
m_cWindowName = m_pCurrStream->getStreamInformationString();
|
m_cWindowName = m_pCurrStream->getStreamInformationString();
|
||||||
|
|||||||
+2
-2
@@ -99,8 +99,8 @@ void ViewArea::clearMask()
|
|||||||
|
|
||||||
void ViewArea::setZoomFactor( double f )
|
void ViewArea::setZoomFactor( double f )
|
||||||
{
|
{
|
||||||
if( f == m_zoomFactor )
|
//if( f == m_zoomFactor )
|
||||||
return;
|
//return;
|
||||||
|
|
||||||
m_zoomFactor = f;
|
m_zoomFactor = f;
|
||||||
emit( zoomFactorChanged( m_zoomFactor ) );
|
emit( zoomFactorChanged( m_zoomFactor ) );
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ void plaYUVerApp::open()
|
|||||||
statusBar()->showMessage( tr( "File loaded" ), 2000 );
|
statusBar()->showMessage( tr( "File loaded" ), 2000 );
|
||||||
interfaceChild->show();
|
interfaceChild->show();
|
||||||
connect( interfaceChild->getViewArea(), SIGNAL( positionChanged(const QPoint &) ), this, SLOT( updatePixelValueStatusBar(const QPoint &) ) );
|
connect( interfaceChild->getViewArea(), SIGNAL( positionChanged(const QPoint &) ), this, SLOT( updatePixelValueStatusBar(const QPoint &) ) );
|
||||||
|
interfaceChild->zoomToFit();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user