Fix pixel value and position tracking in statusbar.

This commit is contained in:
Luis Lucas committed 2014-03-22 20:20:28 +00:00
1 parent 9c5cc4d1a6
commit 1976bb5a08
5 files changed
+45 -20

No files matched your search

+14 -1
View File
@@ -62,6 +62,7 @@ ViewArea::ViewArea( QWidget *parent ) :
m_gridVisible = false;
m_snapToGrid = false;
m_blockTrackEnable = false;
m_pStream = NULL;
}
void ViewArea::setImage( const QPixmap &pixmap )
@@ -500,7 +501,7 @@ void ViewArea::mouseMoveEvent( QMouseEvent *event )
QPoint actualPos = windowToView( event->pos() );
QRect updateRect;
emit positionChanged( actualPos );
emit positionChanged( actualPos , getInputStream() );
// If mouse left button pressed
if( event->buttons() == Qt::LeftButton && m_lastPos != QPoint( -1, -1 ) )
@@ -749,4 +750,16 @@ void ViewArea::updateMask( const QRect &rect )
}
}
void ViewArea::setInputStream( InputStream *stream )
{
m_pStream = stream;
}
InputStream* ViewArea::getInputStream()
{
return m_pStream;
}
} // NameSpace plaYUVer