47 #ifndef _MIRA_SCROLLVIEW_H_ 48 #define _MIRA_SCROLLVIEW_H_ 50 #include <QAbstractScrollArea> 85 void setContentsPos(
int x,
int y);
87 void resizeContents(
int width,
int height);
95 void ensureVisible(
int x,
int y,
int marginX = 50,
int marginY = 50);
98 QPoint viewportToContents(
const QPoint& pos)
const;
100 QPoint contentsToViewport(
const QPoint& pos)
const;
105 void contentsMoving(
int x,
int y);
109 void updateScrollBars();
110 virtual void scrollContentsBy(
int dX,
int dY);
112 virtual void resizeEvent(QResizeEvent* resizeEvent);
113 virtual void paintEvent(QPaintEvent* paintEvent);
114 virtual void wheelEvent(QWheelEvent* wheelEvent);
120 virtual void drawContents(QPainter* painter,
const QRect& rect) = 0;
127 virtual void updateContents(
const QRect& rect);
132 virtual void updateContents();
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67