<class name="QGraphicsSceneDragDropEvent" doc="/** <p>The <a href="QGraphicsSceneDragDropEvent.html#QGraphicsSceneDragDropEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneDragDropEvent</tt></a> class provides events for drag and drop in the graphics view framework.</p> <p><a href="QGraphicsView.html"><tt>QGraphicsView</tt></a> inherits the drag and drop functionality provided by <a href="QWidget.html"><tt>QWidget</tt></a>. When it receives a drag and drop event, it translates it to a <a href="QGraphicsSceneDragDropEvent.html#QGraphicsSceneDragDropEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneDragDropEvent</tt></a>.</p> <p><a href="QGraphicsSceneDragDropEvent.html#QGraphicsSceneDragDropEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneDragDropEvent</tt></a> stores events of type <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>GraphicsSceneDragEnter</tt></a>, <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>GraphicsSceneDragLeave</tt></a>, <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>GraphicsSceneDragMove</tt></a>, or <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>GraphicsSceneDrop</tt></a>.</p> <p><a href="QGraphicsSceneDragDropEvent.html#QGraphicsSceneDragDropEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneDragDropEvent</tt></a> contains the position of the mouse cursor in both item, scene, and screen coordinates; this can be retrieved with <a href="QGraphicsSceneDragDropEvent.html#pos()"><tt>pos</tt></a>, <a href="QGraphicsSceneDragDropEvent.html#scenePos()"><tt>scenePos</tt></a>, and <a href="QGraphicsSceneDragDropEvent.html#screenPos()"><tt>screenPos</tt></a>.</p> <p>The scene sends the event to the first <a href="QGraphicsItem.html"><tt>QGraphicsItem</tt></a> under the mouse cursor that accepts drops; a graphics item is set to accept drops with setAcceptDrops().</p> */"> <method name="public QGraphicsSceneDragDropEvent(com.trolltech.qt.core.QEvent.Type type)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public QGraphicsSceneDragDropEvent()" doc="/** <p>Equivalent to <a href="QGraphicsSceneDragDropEvent.html#QGraphicsSceneDragDropEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneDragDropEvent</tt></a>(None). */"/> <method name="public final void acceptProposedAction()" doc="/** <p>Sets the proposed action as accepted, i.e, the drop action is set to the proposed action. This is equal to:</p> <pre> setDropAction(proposedAction());</pre> <p>When using this function, one should not call <tt>accept()</tt>.</p> @see <a href="QGraphicsSceneDragDropEvent.html#dropAction()"><tt>dropAction</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#setDropAction(com.trolltech.qt.core.Qt.DropAction)"><tt>setDropAction</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#proposedAction()"><tt>proposedAction</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.MouseButtons buttons()" doc="/** <p>Returns a Qt::MouseButtons value indicating which buttons were pressed on the mouse when this mouse event was generated.</p> @see <a href="QGraphicsSceneDragDropEvent.html#setButtons(com.trolltech.qt.core.Qt.MouseButtons)"><tt>setButtons</tt></a> @see <tt>Qt::MouseButtons</tt> */"/> <method name="public final com.trolltech.qt.core.Qt.DropAction dropAction()" doc="/** <p>Returns the action that was performed in this drag and drop. This should be set by the receiver of the drop and is returned by QDrag::start().</p> @see <a href="QGraphicsSceneDragDropEvent.html#setDropAction(com.trolltech.qt.core.Qt.DropAction)"><tt>setDropAction</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#acceptProposedAction()"><tt>acceptProposedAction</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QMimeData mimeData()" doc="/** <p>This function returns the MIME data of the event.</p> */"/> <method name="public final com.trolltech.qt.core.Qt.KeyboardModifiers modifiers()" doc="/** <p>Returns the keyboard modifiers that were pressed when the drag and drop event was created.</p> @see <a href="QGraphicsSceneDragDropEvent.html#setModifiers(com.trolltech.qt.core.Qt.KeyboardModifiers)"><tt>setModifiers</tt></a> @see <tt>Qt::KeyboardModifiers</tt> */"/> <method name="public final com.trolltech.qt.core.QPointF pos()" doc="/** <p>Returns the mouse position of the event relative to the view that sent the event.</p> @see <a href="QGraphicsSceneDragDropEvent.html#setPos(com.trolltech.qt.core.QPointF)"><tt>setPos</tt></a> @see <a href="QGraphicsView.html"><tt>QGraphicsView</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#screenPos()"><tt>screenPos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#scenePos()"><tt>scenePos</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.DropActions possibleActions()" doc="/** <p>Returns the possible drop actions that the drag and drop can result in.</p> @see <a href="QGraphicsSceneDragDropEvent.html#setPossibleActions(com.trolltech.qt.core.Qt.DropActions)"><tt>setPossibleActions</tt></a> @see <tt>Qt::DropActions</tt> */"/> <method name="public final com.trolltech.qt.core.Qt.DropAction proposedAction()" doc="/** <p>Returns the drop action that is proposed, i.e&#x2e;, preferred. The action must be one of the possible actions as defined by <tt>possibleActions()</tt>.</p> @see <a href="QGraphicsSceneDragDropEvent.html#setProposedAction(com.trolltech.qt.core.Qt.DropAction)"><tt>setProposedAction</tt></a> @see <tt>Qt::DropAction</tt> @see <a href="QGraphicsSceneDragDropEvent.html#possibleActions()"><tt>possibleActions</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPointF scenePos()" doc="/** <p>Returns the position of the mouse in scene coordinates.</p> @see <a href="QGraphicsSceneDragDropEvent.html#setScenePos(com.trolltech.qt.core.QPointF)"><tt>setScenePos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#pos()"><tt>pos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#screenPos()"><tt>screenPos</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPoint screenPos()" doc="/** <p>Returns the position of the mouse relative to the screen.</p> @see <a href="QGraphicsSceneDragDropEvent.html#setScreenPos(com.trolltech.qt.core.QPoint)"><tt>setScreenPos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#pos()"><tt>pos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#scenePos()"><tt>scenePos</tt></a> */"/> <method name="public final void setButtons(com.trolltech.qt.core.Qt.MouseButtons buttons)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <tt>Qt::MouseButtons</tt> @see <a href="QGraphicsSceneDragDropEvent.html#buttons()"><tt>buttons</tt></a> */"/> <method name="public final void setDropAction(com.trolltech.qt.core.Qt.DropAction action)" doc="/** <p>This function lets the receiver of the drop set the drop action that was performed to <tt>action</tt>, which should be one of the possible actions</tt>. Call <tt>accept()</tt> in stead of <tt>acceptProposedAction()</tt> if you use this function.</p> @see <a href="QGraphicsSceneDragDropEvent.html#dropAction()"><tt>dropAction</tt></a> @see <a href="%2E%2E/core/%2E%2E/core/QEvent.html#accept()"><tt>accept</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#possibleActions()"><tt>possibleActions</tt></a> */"/> <method name="public final void setModifiers(com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <tt>Qt::KeyboardModifiers</tt> @see <a href="QGraphicsSceneDragDropEvent.html#modifiers()"><tt>modifiers</tt></a> */"/> <method name="public final void setPos(com.trolltech.qt.core.QPointF pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneDragDropEvent.html#pos()"><tt>pos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#setScenePos(com.trolltech.qt.core.QPointF)"><tt>setScenePos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#setScreenPos(com.trolltech.qt.core.QPoint)"><tt>setScreenPos</tt></a> */"/> <method name="public final void setPossibleActions(com.trolltech.qt.core.Qt.DropActions actions)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <tt>Qt::DropActions</tt> @see <a href="QGraphicsSceneDragDropEvent.html#possibleActions()"><tt>possibleActions</tt></a> */"/> <method name="public final void setProposedAction(com.trolltech.qt.core.Qt.DropAction action)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneDragDropEvent.html#proposedAction()"><tt>proposedAction</tt></a> @see <tt>Qt::DropAction</tt> @see <a href="QGraphicsSceneDragDropEvent.html#possibleActions()"><tt>possibleActions</tt></a> */"/> <method name="public final void setScenePos(com.trolltech.qt.core.QPointF pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneDragDropEvent.html#scenePos()"><tt>scenePos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#setScreenPos(com.trolltech.qt.core.QPoint)"><tt>setScreenPos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#setPos(com.trolltech.qt.core.QPointF)"><tt>setPos</tt></a> */"/> <method name="public final void setScreenPos(com.trolltech.qt.core.QPoint pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneDragDropEvent.html#screenPos()"><tt>screenPos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#setScenePos(com.trolltech.qt.core.QPointF)"><tt>setScenePos</tt></a> @see <a href="QGraphicsSceneDragDropEvent.html#setPos(com.trolltech.qt.core.QPointF)"><tt>setPos</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QWidget source()" doc="/** <p>This function returns the <a href="QGraphicsView.html"><tt>QGraphicsView</tt></a> that created the <a href="QGraphicsSceneDragDropEvent.html#QGraphicsSceneDragDropEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneDragDropEvent</tt></a>.</p> */"/> </class>