Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2004

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QDragMoveEvent" doc="/**
&lt;p&gt;The &lt;a href=&quot;QDragMoveEvent.html#QDragMoveEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)&quot;&gt;&lt;tt&gt;QDragMoveEvent&lt;/tt&gt;&lt;/a&gt; class provides an event which is sent while a drag and drop action is in progress.&lt;/p&gt;
&lt;p&gt;A widget will receive drag move events repeatedly while the drag is within its boundaries, if it accepts drop events&lt;/tt&gt; and enter events&lt;/tt&gt;. The widget should examine the event to see what kind of data it provides&lt;/tt&gt;, and call the &lt;a href=&quot;QDragMoveEvent.html#accept(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt; function to accept the drop if appropriate.&lt;/p&gt;
&lt;p&gt;The rectangle supplied by the &lt;a href=&quot;QDragMoveEvent.html#answerRect()&quot;&gt;&lt;tt&gt;answerRect&lt;/tt&gt;&lt;/a&gt; function can be used to restrict drops to certain parts of the widget. For example, we can check whether the rectangle intersects with the geometry of a certain child widget and only call acceptProposedAction() if that is the case.&lt;/p&gt;
&lt;p&gt;Note that this class inherits most of its functionality from &lt;a href=&quot;QDropEvent.html#QDropEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)&quot;&gt;&lt;tt&gt;QDropEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDragEnterEvent.html&quot;&gt;&lt;tt&gt;QDragEnterEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDragLeaveEvent.html&quot;&gt;&lt;tt&gt;QDragLeaveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDropEvent.html#QDropEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)&quot;&gt;&lt;tt&gt;QDropEvent&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QDragMoveEvent(com.trolltech.qt.core.QPoint pos, com.trolltech.qt.core.Qt.DropActions actions, com.trolltech.qt.gui.QMimeData data, com.trolltech.qt.core.Qt.MouseButtons buttons, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, com.trolltech.qt.core.QEvent.Type type)" doc="/**
&lt;p&gt;Creates a &lt;a href=&quot;QDragMoveEvent.html#QDragMoveEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)&quot;&gt;&lt;tt&gt;QDragMoveEvent&lt;/tt&gt;&lt;/a&gt; of the required &lt;tt&gt;type&lt;/tt&gt; indicating that the mouse is at position &lt;tt&gt;pos&lt;/tt&gt; given within a widget.&lt;/p&gt;
&lt;p&gt;The mouse and keyboard states are specified by &lt;tt&gt;buttons&lt;/tt&gt; and &lt;tt&gt;modifiers&lt;/tt&gt;, and the &lt;tt&gt;actions&lt;/tt&gt; describe the types of drag and drop operation that are possible. The drag data is passed as MIME-encoded information in &lt;tt&gt;data&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not attempt to create a &lt;a href=&quot;QDragMoveEvent.html#QDragMoveEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)&quot;&gt;&lt;tt&gt;QDragMoveEvent&lt;/tt&gt;&lt;/a&gt; yourself. These objects rely on Qt's internal state.&lt;/p&gt;
 */"/>
    <method name="public QDragMoveEvent(com.trolltech.qt.core.QPoint pos, com.trolltech.qt.core.Qt.DropActions actions, com.trolltech.qt.gui.QMimeData data, com.trolltech.qt.core.Qt.MouseButtons buttons, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDragMoveEvent.html#QDragMoveEvent(com.trolltech.qt.core.QPoint, com.trolltech.qt.core.Qt.DropActions, com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.MouseButtons, com.trolltech.qt.core.Qt.KeyboardModifiers, com.trolltech.qt.core.QEvent.Type)&quot;&gt;&lt;tt&gt;QDragMoveEvent&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;pos&lt;/tt&gt;, &lt;tt&gt;actions&lt;/tt&gt;, &lt;tt&gt;data&lt;/tt&gt;, &lt;tt&gt;buttons&lt;/tt&gt;, &lt;tt&gt;modifiers&lt;/tt&gt;, DragMove). */"/>
    <method name="public final void accept(com.trolltech.qt.core.QRect r)" doc="/**
&lt;p&gt;The same as &lt;a href=&quot;QDragMoveEvent.html#accept(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt;, but also notifies that future moves will also be acceptable if they remain within the &lt;tt&gt;r&lt;/tt&gt; given on the widget. This can improve performance, but may also be ignored by the underlying system.&lt;/p&gt;
&lt;p&gt;If the rectangle is empty, drag move events will be sent continuously. This is useful if the source is scrolling in a timer event.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRect answerRect()" doc="/**
&lt;p&gt;Returns the rectangle in the widget where the drop will occur if accepted. You can use this information to restrict drops to certain places on the widget.&lt;/p&gt;
 */"/>
    <method name="public final void ignore(com.trolltech.qt.core.QRect r)" doc="/**
&lt;p&gt;The opposite of the accept(const &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;&amp;amp;) function. Moves within the &lt;tt&gt;r&lt;/tt&gt; are not acceptable, and will be ignored.&lt;/p&gt;
 */"/>
    <method name="protected final com.trolltech.qt.core.QRect rect()"/>
    <method name="protected final void setRect(com.trolltech.qt.core.QRect rect)"/>
</class>