Eneboo - Documentación para desarrolladores
|
The QDragMoveEvent class provides an event which is sent while a drag and drop is in progress. Más...
#include <qevent.h>
Métodos públicos | |
QDragMoveEvent (const QPoint &pos, Type typ=DragMove) | |
QRect | answerRect () const |
void | accept (bool y=TRUE) |
void | accept (const QRect &r) |
void | ignore (const QRect &r) |
void | ignore () |
QDragMoveEvent (const QPoint &pos, Type typ=DragMove) | |
QRect | answerRect () const |
void | accept (bool y=TRUE) |
void | accept (const QRect &r) |
void | ignore (const QRect &r) |
void | ignore () |
Atributos protegidos | |
QRect | rect |
The QDragMoveEvent class provides an event which is sent while a drag and drop is in progress.
When a widget accepts drop events, it will receive this event repeatedly while the drag is within the widget's boundaries. The widget should examine the event to see what data it provides, and accept() the drop if appropriate.
Note that this class inherits most of its functionality from QDropEvent.
Creates a QDragMoveEvent for which the mouse is at point pos, and the event is of type type.
void QDragMoveEvent::accept | ( | bool | y = TRUE | ) | [inline] |
Reimplementado de QDropEvent.
void QDragMoveEvent::accept | ( | const QRect & | r | ) | [inline] |
void QDragMoveEvent::accept | ( | const QRect & | r | ) | [inline] |
The same as accept(), but also notifies that future moves will also be acceptable if they remain within the rectangle r on the widget: this can improve performance, but may also be ignored by the underlying system.
If the rectangle is empty, then drag move events will be sent continuously. This is useful if the source is scrolling in a timer event.
void QDragMoveEvent::accept | ( | bool | y = TRUE | ) | [inline] |
Call this function to indicate whether the event provided data which your widget processed. Set y to TRUE (the default) if your widget could process the data, otherwise set y to FALSE. To get the data, use encodedData(), or preferably, the decode() methods of existing QDragObject subclasses, such as QTextDrag::decode(), or your own subclasses.
Reimplementado de QDropEvent.
QRect QDragMoveEvent::answerRect | ( | ) | const [inline] |
Returns the rectangle for which the acceptance of the move event applies.
QRect QDragMoveEvent::answerRect | ( | ) | const [inline] |
void QDragMoveEvent::ignore | ( | ) | [inline] |
Reimplementado de QDropEvent.
void QDragMoveEvent::ignore | ( | ) | [inline] |
The opposite of accept(), i.e. you have ignored the drop event.
Reimplementado de QDropEvent.
void QDragMoveEvent::ignore | ( | const QRect & | r | ) | [inline] |
The opposite of accept(const QRect&), i.e. says that moves within rectangle r are not acceptable (will be ignored).
void QDragMoveEvent::ignore | ( | const QRect & | r | ) | [inline] |
QRect QDragMoveEvent::rect [protected] |