42 #ifndef QDECLARATIVEMOUSEAREA_H 43 #define QDECLARATIVEMOUSEAREA_H 92 bool filterChildren()
const;
93 void setFilterChildren(
bool);
98 void minimumXChanged();
99 void maximumXChanged();
100 void minimumYChanged();
101 void maximumYChanged();
102 void activeChanged();
103 void filterChildrenChanged();
138 qreal mouseX()
const;
139 qreal mouseY()
const;
144 bool hovered()
const;
145 bool pressed()
const;
147 Qt::MouseButtons pressedButtons()
const;
149 Qt::MouseButtons acceptedButtons()
const;
150 void setAcceptedButtons(Qt::MouseButtons
buttons);
152 bool hoverEnabled()
const;
153 void setHoverEnabled(
bool h);
157 bool preventStealing()
const;
158 void setPreventStealing(
bool prevent);
161 void hoveredChanged();
162 void pressedChanged();
164 void acceptedButtonsChanged();
165 void hoverEnabledChanged();
168 Q_REVISION(1) void preventStealingChanged();
180 void setHovered(
bool);
181 bool setPressed(
bool);
190 #ifndef QT_NO_CONTEXTMENU 192 #endif // QT_NO_CONTEXTMENU 199 const QRectF &oldGeometry);
204 void handleRelease();
218 #endif // QDECLARATIVEMOUSEAREA_H The QVariant class acts like a union for the most common Qt data types.
#define QT_END_NAMESPACE
This macro expands to.
QScopedPointer< QGraphicsItemPrivate > d_ptr
#define QML_DECLARE_TYPE(TYPE)
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
static Qt::MouseButtons buttons
virtual void timerEvent(QTimerEvent *)
This event handler can be reimplemented in a subclass to receive timer events for the object...
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
GraphicsItemChange
This enum describes the state changes that are notified by QGraphicsItem::itemChange().
bool isEnabled() const
Returns true if the item is enabled; otherwise, false is returned.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QDeclarativeItem class provides the most basic of all visual items in QML.
QVariant data(int key) const
Returns this item's custom data for the key key as a QVariant.
void enabledChanged()
This signal gets emitted whenever the item get's enabled or disabled.
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
This event handler can be reimplemented in a subclass to process context menu events.
virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
This function is called to handle this item's changes in geometry from oldGeometry to newGeometry...
Qt::MouseButtons pressedButtons
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
virtual QVariant itemChange(GraphicsItemChange, const QVariant &)
Note that unlike QGraphicsItems, QDeclarativeItem::itemChange() is not called during initial widget p...
The QTimerEvent class contains parameters that describe a timer event.
Qt::MouseButtons acceptedButtons
#define Q_AUTOTEST_EXPORT
virtual bool sceneEvent(QEvent *)
QGraphicsObject * _target
void setEnabled(bool enabled)
If enabled is true, the item is enabled; otherwise, it is disabled.
The QGraphicsObject class provides a base class for all graphics items that require signals...
The QEvent class is the base class of all event classes.
virtual bool sceneEventFilter(QGraphicsItem *watched, QEvent *event)
Filters events for the item watched.
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.