#include <hoverpoints.h>
Public Types | |
enum | PointShape { CircleShape, RectangleShape } |
enum | LockType { LockToLeft = 0x01, LockToRight = 0x02, LockToTop = 0x04, LockToBottom = 0x08 } |
enum | SortType { NoSort, XSort, YSort } |
enum | ConnectionType { NoConnection, LineConnection, CurveConnection } |
Public Slots | |
void | setEnabled (bool enabled) |
void | setDisabled (bool disabled) |
Signals | |
void | pointsChanged (const QPolygonF &points) |
Public Member Functions | |
HoverPoints (QWidget *widget, PointShape shape) | |
bool | eventFilter (QObject *object, QEvent *event) |
void | paintPoints () |
QRectF | boundingRect () const |
void | setBoundingRect (const QRectF &boundingRect) |
QPolygonF | points () const |
void | setPoints (const QPolygonF &points) |
QSizeF | pointSize () const |
void | setPointSize (const QSizeF &size) |
SortType | sortType () const |
void | setSortType (SortType sortType) |
ConnectionType | connectionType () const |
void | setConnectionType (ConnectionType connectionType) |
void | setConnectionPen (const QPen &pen) |
void | setShapePen (const QPen &pen) |
void | setShapeBrush (const QBrush &brush) |
void | setPointLock (int pos, LockType lock) |
void | setEditable (bool editable) |
bool | editable () const |
void | firePointChange () |
Definition at line 51 of file hoverpoints.h.
Definition at line 73 of file hoverpoints.h.
Definition at line 60 of file hoverpoints.h.
HoverPoints::HoverPoints | ( | QWidget * | widget, | |
PointShape | shape | |||
) |
Definition at line 53 of file hoverpoints.cpp.
QRectF HoverPoints::boundingRect | ( | ) | const [inline] |
Definition at line 154 of file hoverpoints.h.
ConnectionType HoverPoints::connectionType | ( | ) | const [inline] |
Definition at line 97 of file hoverpoints.h.
bool HoverPoints::editable | ( | ) | const [inline] |
Definition at line 107 of file hoverpoints.h.
bool HoverPoints::eventFilter | ( | QObject * | object, | |
QEvent * | event | |||
) |
Definition at line 84 of file hoverpoints.cpp.
void HoverPoints::firePointChange | ( | ) |
Definition at line 299 of file hoverpoints.cpp.
void HoverPoints::paintPoints | ( | ) |
Definition at line 199 of file hoverpoints.cpp.
QPolygonF HoverPoints::points | ( | ) | const [inline] |
Definition at line 88 of file hoverpoints.h.
void HoverPoints::pointsChanged | ( | const QPolygonF & | points | ) | [signal] |
QSizeF HoverPoints::pointSize | ( | ) | const [inline] |
Definition at line 91 of file hoverpoints.h.
void HoverPoints::setBoundingRect | ( | const QRectF & | boundingRect | ) | [inline] |
Definition at line 86 of file hoverpoints.h.
void HoverPoints::setConnectionPen | ( | const QPen & | pen | ) | [inline] |
Definition at line 100 of file hoverpoints.h.
void HoverPoints::setConnectionType | ( | ConnectionType | connectionType | ) | [inline] |
Definition at line 98 of file hoverpoints.h.
void HoverPoints::setDisabled | ( | bool | disabled | ) | [inline, slot] |
Definition at line 111 of file hoverpoints.h.
void HoverPoints::setEditable | ( | bool | editable | ) | [inline] |
Definition at line 106 of file hoverpoints.h.
void HoverPoints::setEnabled | ( | bool | enabled | ) | [slot] |
Definition at line 75 of file hoverpoints.cpp.
void HoverPoints::setPointLock | ( | int | pos, | |
LockType | lock | |||
) | [inline] |
Definition at line 104 of file hoverpoints.h.
void HoverPoints::setPoints | ( | const QPolygonF & | points | ) |
Definition at line 265 of file hoverpoints.cpp.
void HoverPoints::setPointSize | ( | const QSizeF & | size | ) | [inline] |
Definition at line 92 of file hoverpoints.h.
void HoverPoints::setShapeBrush | ( | const QBrush & | brush | ) | [inline] |
Definition at line 102 of file hoverpoints.h.
void HoverPoints::setShapePen | ( | const QPen & | pen | ) | [inline] |
Definition at line 101 of file hoverpoints.h.
void HoverPoints::setSortType | ( | SortType | sortType | ) | [inline] |
Definition at line 95 of file hoverpoints.h.
SortType HoverPoints::sortType | ( | ) | const [inline] |
Definition at line 94 of file hoverpoints.h.