DragAndDrop
DeclarativeDragArea.h
Go to the documentation of this file.
40 Q_PROPERTY(QDeclarativeComponent* delegate READ delegate WRITE setDelegate NOTIFY delegateChanged RESET resetDelegate)
46 Q_PROPERTY(QDeclarativeItem* source READ source WRITE setSource NOTIFY sourceChanged RESET resetSource)
60 Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged) //TODO: Should call setAcceptDrops()
71 Q_PROPERTY(Qt::DropActions supportedActions READ supportedActions WRITE setSupportedActions NOTIFY supportedActionsChanged)
76 Q_PROPERTY(Qt::DropAction defaultAction READ defaultAction WRITE setDefaultAction NOTIFY defaultActionChanged)
81 Q_PROPERTY(int startDragDistance READ startDragDistance WRITE setStartDragDistance NOTIFY startDragDistanceChanged)
86 Q_PROPERTY(QVariant delegateImage READ delegateImage WRITE setDelegateImage NOTIFY delegateImageChanged)
void supportedActionsChanged()
QVariant delegateImage() const
DeclarativeMimeData * mimeData() const
QDeclarativeItem * source() const
void mouseReleaseEvent(QGraphicsSceneMouseEvent *)
Definition: DeclarativeDragArea.h:135
void setSource(QDeclarativeItem *source)
Definition: DeclarativeDragArea.cpp:91
virtual bool event(QEvent *e)
void sourceChanged()
void startDragDistanceChanged()
void enabledChanged()
void targetChanged()
void drop(int action)
Qt::DropAction defaultAction() const
void defaultActionChanged()
QDeclarativeItem * target() const
int startDragDistance() const
void delegateImageChanged()
void mousePressEvent(QGraphicsSceneMouseEvent *)
Definition: DeclarativeDragArea.h:134
QDeclarativeComponent * delegate() const
void setSupportedActions(Qt::DropActions actions)
Definition: DeclarativeDragArea.cpp:172
Definition: DeclarativeMimeData.h:32
Qt::DropActions supportedActions() const
void setDelegate(QDeclarativeComponent *delegate)
Definition: DeclarativeDragArea.cpp:70
typedef DropActions
void dragStarted()
void setStartDragDistance(int distance)
Definition: DeclarativeDragArea.cpp:123
void dataChanged()
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: DeclarativeDragArea.cpp:193
void setDefaultAction(Qt::DropAction action)
Definition: DeclarativeDragArea.cpp:185
QObject * parent() const
void setDelegateImage(const QVariant &image)
Definition: DeclarativeDragArea.cpp:139
void delegateChanged()
Definition: DeclarativeDragArea.h:32
bool sceneEventFilter(QGraphicsItem *item, QEvent *event)
Definition: DeclarativeDragArea.cpp:237
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:31 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:31 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.