Add auxiliar semi-transparent window in bottom-right corner of the image to illustrate the size and position of the current visible region of the image.
This commit is contained in:
1 parent
ddb51110bf
commit
865d7efc38
2 files changed
+106
-18
No files matched your search
@@ -32,6 +32,7 @@
|
||||
#include <QPixmap>
|
||||
#include <QBitmap>
|
||||
#include <QColor>
|
||||
#include <QTimer>
|
||||
#include "GridManager.h"
|
||||
#include "lib/PlaYUVerFrame.h"
|
||||
|
||||
@@ -153,6 +154,8 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
void initZoomWinRect();
|
||||
void startZoomWinTimer();
|
||||
bool isPosValid( const QPoint &pos ) const;
|
||||
void updateMask( const QRect &rect );
|
||||
void setZoomFactor( double );
|
||||
@@ -182,6 +185,9 @@ private:
|
||||
bool m_gridVisible;
|
||||
bool m_snapToGrid;
|
||||
bool m_cursorInGrid;
|
||||
bool m_visibleZoomRect;
|
||||
double m_dZoomWinRatio;
|
||||
QTimer m_zoomWinTimer;
|
||||
|
||||
PlaYUVerStream *m_pStream;
|
||||
|
||||
|
||||
Reference in new issue
Block a user