45 #include <QtGui/qwidget.h>
47 #include <QtGui/qpen.h>
48 #include <QtGui/qevent.h>
49 #include <QtGui/qpainter.h>
50 #include <QtGui/qapplication.h>
52 QT_FORWARD_DECLARE_CLASS(QBypassWidget)
85 bool eventFilter(QObject *
object, QEvent *event);
89 inline QRectF boundingRect()
const;
92 QPolygonF
points()
const {
return m_points; }
93 void setPoints(
const QPolygonF &points);
114 void setEnabled(
bool enabled);
118 void pointsChanged(
const QPolygonF &points);
121 void firePointChange();
124 inline QRectF pointBoundingRect(
int i)
const;
125 void movePoint(
int i,
const QPointF &newPos,
bool emitChange =
true);
155 qreal x = p.x() - w / 2;
156 qreal y = p.y() - h / 2;
157 return QRectF(x, y, w, h);
168 #endif // HOVERPOINTS_H