Sophie

Sophie

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

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

<class name="QDropEvent" doc="/**
&lt;p&gt;The &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; class provides an event which is sent when a drag and drop action is completed.&lt;/p&gt;
&lt;p&gt;When a widget accepts drop events&lt;/tt&gt;, it will receive this event if it has accepted the most recent &lt;a href=&quot;QDragEnterEvent.html&quot;&gt;&lt;tt&gt;QDragEnterEvent&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDragMoveEvent.html&quot;&gt;&lt;tt&gt;QDragMoveEvent&lt;/tt&gt;&lt;/a&gt; sent to it.&lt;/p&gt;
&lt;p&gt;The drop event contains a proposed action, available from &lt;a href=&quot;QDropEvent.html#proposedAction()&quot;&gt;&lt;tt&gt;proposedAction&lt;/tt&gt;&lt;/a&gt;, for the widget to either accept or ignore. If the action can be handled by the widget, you should call the &lt;a href=&quot;QDropEvent.html#acceptProposedAction()&quot;&gt;&lt;tt&gt;acceptProposedAction&lt;/tt&gt;&lt;/a&gt; function. Since the proposed action can be a combination of &lt;tt&gt;Qt::DropAction&lt;/tt&gt; values, it may be useful to either select one of these values as a default action or ask the user to select their preferred action.&lt;/p&gt;
&lt;p&gt;If the proposed drop action is not suitable, perhaps because your custom widget does not support that action, you can replace it with any of the &lt;a href=&quot;QDropEvent.html#possibleActions()&quot;&gt;possible drop actions&lt;/tt&gt;&lt;/a&gt; by calling &lt;a href=&quot;QDropEvent.html#setDropAction(com.trolltech.qt.core.Qt.DropAction)&quot;&gt;&lt;tt&gt;setDropAction&lt;/tt&gt;&lt;/a&gt; with your preferred action. If you set a value that is not present in the bitwise OR combination of values returned by &lt;a href=&quot;QDropEvent.html#possibleActions()&quot;&gt;&lt;tt&gt;possibleActions&lt;/tt&gt;&lt;/a&gt;, the default copy action will be used. Once a replacement drop action has been set, call &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt; instead of &lt;a href=&quot;QDropEvent.html#acceptProposedAction()&quot;&gt;&lt;tt&gt;acceptProposedAction&lt;/tt&gt;&lt;/a&gt; to complete the drop operation.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QDropEvent.html#mimeData()&quot;&gt;&lt;tt&gt;mimeData&lt;/tt&gt;&lt;/a&gt; function provides the data dropped on the widget in a &lt;a href=&quot;QMimeData.html&quot;&gt;&lt;tt&gt;QMimeData&lt;/tt&gt;&lt;/a&gt; object. This contains information about the MIME type of the data in addition to the data itself.&lt;/p&gt;

@see &lt;a href=&quot;QMimeData.html&quot;&gt;&lt;tt&gt;QMimeData&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDrag.html&quot;&gt;&lt;tt&gt;QDrag&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag and Drop&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QDropEvent(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;Constructs a drop event of a certain &lt;tt&gt;type&lt;/tt&gt; corresponding to a drop at the point specified by &lt;tt&gt;pos&lt;/tt&gt; in the destination widget's coordinate system.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;actions&lt;/tt&gt; indicate which types of drag and drop operation can be performed, and the drag data is stored as MIME-encoded data in &lt;tt&gt;data&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The states of the mouse buttons and keyboard modifiers at the time of the drop are specified by &lt;tt&gt;buttons&lt;/tt&gt; and &lt;tt&gt;modifiers&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QDropEvent(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;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;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;, Drop). */"/>
    <method name="public final void acceptProposedAction()" doc="/**
&lt;p&gt;Sets the drop action to be the proposed action.&lt;/p&gt;

@see &lt;a href=&quot;QDropEvent.html#setDropAction(com.trolltech.qt.core.Qt.DropAction)&quot;&gt;&lt;tt&gt;setDropAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDropEvent.html#proposedAction()&quot;&gt;&lt;tt&gt;proposedAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;accept&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.DropAction dropAction()" doc="/**
&lt;p&gt;Returns the action to be performed on the data by the target. This may be different from the action supplied in &lt;a href=&quot;QDropEvent.html#proposedAction()&quot;&gt;&lt;tt&gt;proposedAction&lt;/tt&gt;&lt;/a&gt; if you have called &lt;a href=&quot;QDropEvent.html#setDropAction(com.trolltech.qt.core.Qt.DropAction)&quot;&gt;&lt;tt&gt;setDropAction&lt;/tt&gt;&lt;/a&gt; to explicitly choose a drop action.&lt;/p&gt;

@see &lt;a href=&quot;QDropEvent.html#setDropAction(com.trolltech.qt.core.Qt.DropAction)&quot;&gt;&lt;tt&gt;setDropAction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.KeyboardModifiers keyboardModifiers()" doc="/**
&lt;p&gt;Returns the modifier keys that are pressed.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QMimeData mimeData()" doc="/**
&lt;p&gt;Returns the data that was dropped on the widget and its associated MIME type information.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.MouseButtons mouseButtons()" doc="/**
&lt;p&gt;Returns the mouse buttons that are pressed..&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QPoint pos()" doc="/**
&lt;p&gt;Returns the position where the drop was made.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.DropActions possibleActions()" doc="/**
&lt;p&gt;Returns an OR-combination of possible drop actions.&lt;/p&gt;

@see &lt;a href=&quot;QDropEvent.html#dropAction()&quot;&gt;&lt;tt&gt;dropAction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.DropAction proposedAction()" doc="/**
&lt;p&gt;Returns the proposed drop action.&lt;/p&gt;

@see &lt;a href=&quot;QDropEvent.html#dropAction()&quot;&gt;&lt;tt&gt;dropAction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDropAction(com.trolltech.qt.core.Qt.DropAction action)" doc="/**
&lt;p&gt;Sets the &lt;tt&gt;action&lt;/tt&gt; to be performed on the data by the target. Use this to override the &lt;a href=&quot;QDropEvent.html#proposedAction()&quot;&gt;proposed action&lt;/tt&gt;&lt;/a&gt; with one of the &lt;a href=&quot;QDropEvent.html#possibleActions()&quot;&gt;possible actions&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you set a drop action that is not one of the possible actions, the drag and drop operation will default to a copy operation.&lt;/p&gt;
&lt;p&gt;Once you have supplied a replacement drop action, call &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt; instead of &lt;a href=&quot;QDropEvent.html#acceptProposedAction()&quot;&gt;&lt;tt&gt;acceptProposedAction&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDropEvent.html#dropAction()&quot;&gt;&lt;tt&gt;dropAction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget source()" doc="/**
&lt;p&gt;If the source of the drag operation is a widget in this application, this function returns that source; otherwise it returns 0. The source of the operation is the first parameter to the &lt;a href=&quot;QDrag.html&quot;&gt;&lt;tt&gt;QDrag&lt;/tt&gt;&lt;/a&gt; object used instantiate the drag.&lt;/p&gt;
&lt;p&gt;This is useful if your widget needs special behavior when dragging to itself.&lt;/p&gt;

@see &lt;tt&gt;QDrag::QDrag&lt;/tt&gt; */"/>
    <method name="protected final com.trolltech.qt.gui.QMimeData mdata()"/>
    <method name="protected final void setMdata(com.trolltech.qt.gui.QMimeData mdata)"/>
    <method name="protected final com.trolltech.qt.core.Qt.DropAction default_action()"/>
    <method name="protected final void setDefault_action(com.trolltech.qt.core.Qt.DropAction default_action)"/>
    <method name="protected final com.trolltech.qt.core.Qt.KeyboardModifiers modState()"/>
    <method name="protected final void setModState(com.trolltech.qt.core.Qt.KeyboardModifiers modState)"/>
    <method name="protected final java.util.List&lt;com.trolltech.qt.core.QByteArray&gt; fmts()" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi. Do not use it in your applications.&lt;/p&gt;

@see &lt;a href=&quot;QDropEvent.html#setFmts(java.util.List&lt;com.trolltech.qt.core.QByteArray&gt;)&quot;&gt;&lt;tt&gt;setFmts&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final void setFmts(java.util.List&lt;com.trolltech.qt.core.QByteArray&gt; fmts)" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi. Do not use it in your applications.&lt;/p&gt;

@see &lt;a href=&quot;QDropEvent.html#fmts()&quot;&gt;&lt;tt&gt;fmts&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final com.trolltech.qt.core.Qt.MouseButtons mouseState()"/>
    <method name="protected final void setMouseState(com.trolltech.qt.core.Qt.MouseButtons mouseState)"/>
    <method name="protected final com.trolltech.qt.core.Qt.DropAction drop_action()"/>
    <method name="protected final void setDrop_action(com.trolltech.qt.core.Qt.DropAction drop_action)"/>
    <method name="protected final com.trolltech.qt.core.QPoint p()"/>
    <method name="protected final void setP(com.trolltech.qt.core.QPoint p)"/>
    <method name="protected final com.trolltech.qt.core.Qt.DropActions act()"/>
    <method name="protected final void setAct(com.trolltech.qt.core.Qt.DropActions act)"/>
</class>