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:
Luis Lucas committed 2015-04-19 01:56:08 +01:00
1 parent ddb51110bf
commit 865d7efc38
2 files changed
+106 -18

No files matched your search

+6
View File
@@ -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;