34 Q_PROPERTY(
int xValue READ xValue WRITE setXValue)
35 Q_PROPERTY(
int yValue READ yValue WRITE setYValue)
52 void setValues(
int xPos,
int yPos);
58 void setXValue(
int xPos);
64 void setYValue(
int yPos);
69 void setRange(
int minX,
int minY,
int maxX,
int maxY);
75 void setMarkerColor(const QColor& col);
90 QRect contentsRect() const;
95 QSize minimumSizeHint() const override;
103 void valueChanged(
int x,
int y);
113 virtual
void drawContents(QPainter*)
121 virtual void drawMarker(QPainter* p,
int xp,
int yp);
123 void paintEvent(QPaintEvent* e)
override;
124 void mousePressEvent(QMouseEvent* e)
override;
125 void mouseMoveEvent(QMouseEvent* e)
override;
126 void wheelEvent(QWheelEvent*)
override;
131 void valuesFromPosition(
int x,
int y,
int& xVal,
int& yVal)
const;
135 void setPosition(
int xp,
int yp);
143 friend class Private;
144 Private*
const d =
nullptr;