46 #include <QColorDialog>
48 QT_FORWARD_DECLARE_CLASS(QBypassWidget)
86 bool eventFilter(QObject *
object, QEvent *event);
90 inline QRectF boundingRect()
const;
94 QPolygonF
points()
const {
return m_points; }
95 void setPoints(
const QPolygonF &points);
116 void setEnabled(
bool enabled);
120 void pointsChanged(
const QPolygonF &points);
123 void firePointChange();
126 inline QRectF pointBoundingRect(
int i)
const;
127 void movePoint(
int i,
const QPointF &newPos,
bool emitChange =
true);
135 ConnectionType m_connectionType;
137 QVector<uint> m_locks;
144 QHash<int, int> m_fingerPointMapping;
148 QPen m_connectionPen;
150 QColorDialog *m_dialog;
154 inline QRectF HoverPoints::pointBoundingRect(
int i)
const
156 QPointF p = m_points.at(i);
157 qreal w = m_pointSize.width();
158 qreal h = m_pointSize.height();
159 qreal x = p.x() - w / 2;
160 qreal y = p.y() - h / 2;
161 return QRectF(x, y, w, h);
166 if (m_bounds.isEmpty())
167 return m_widget->rect();
172 #endif // HOVERPOINTS_H