Change some general functions to SubWindowHandle in order to prepare code to the modules sub window type

This commit is contained in:
jfmcarreira committed 2015-01-17 18:06:41 +00:00
1 parent a8b66f88ea
commit 08eaa19412
4 files changed
+129 -117

No files matched your search

+7 -15
View File
@@ -62,7 +62,6 @@ Q_OBJECT
private:
QScrollArea* m_cScrollArea;
ViewArea* m_cViewArea;
PlaYUVerStreamInfo m_sStreamInfo;
@@ -83,7 +82,13 @@ private:
Bool m_bIsPlaying;
Bool m_bIsModule;
QPoint m_cLastScroll;
/**
* Private zoom function to handle
* zoom to fit
*/
Void scaleView( const QSize & size );
public:
VideoSubWindow( QWidget * parent = 0, Bool isModule = false );
@@ -168,8 +173,6 @@ public:
return m_cViewArea->getZoomFactor();
}
Void adjustScrollBarByZoom( Double factor, QPoint center );
QSize sizeHint() const;
Void setWindowShortName( const QString& name)
@@ -190,22 +193,11 @@ public:
return m_bIsModule;
}
private:
/**
* Private zoom function to handle
* zoom to fit
*/
Void scaleView( const QSize & size );
protected:
void closeEvent( QCloseEvent *event );
public Q_SLOTS:
void updateSelectedArea( QRect area );
void processZoomChanged( double , QPoint );
void adjustScrollBarByOffset( QPoint Offset );
void updateLastScrollValue();
void updatePixelValueStatusBar( const QPoint& );
};