Eneboo - Documentación para desarrolladores
|
The QIconDragItem class encapsulates a drag item. Más...
#include <qiconview.h>
Métodos públicos | |
QIconDragItem () | |
virtual | ~QIconDragItem () |
virtual QByteArray | data () const |
virtual void | setData (const QByteArray &d) |
bool | operator== (const QIconDragItem &) const |
QIconDragItem () | |
virtual | ~QIconDragItem () |
virtual QByteArray | data () const |
virtual void | setData (const QByteArray &d) |
bool | operator== (const QIconDragItem &) const |
The QIconDragItem class encapsulates a drag item.
iconview
The QIconDrag class uses a list of QIconDragItems to support drag and drop operations.
In practice a QIconDragItem object (or an object of a class derived from QIconDragItem) is created for each icon view item which is dragged. Each of these QIconDragItems is stored in a QIconDrag object.
See QIconView::dragObject() for more information.
See the fileiconview/qfileiconview.cpp and iconview/simple_dd/main.cpp examples.
QIconDragItem::QIconDragItem | ( | ) |
Constructs a QIconDragItem with no data.
QIconDragItem::~QIconDragItem | ( | ) | [virtual] |
Destructor.
QIconDragItem::QIconDragItem | ( | ) |
virtual QIconDragItem::~QIconDragItem | ( | ) | [virtual] |
QByteArray QIconDragItem::data | ( | ) | const [virtual] |
Returns the data contained in the QIconDragItem.
virtual QByteArray QIconDragItem::data | ( | ) | const [virtual] |
bool QIconDragItem::operator== | ( | const QIconDragItem & | ) | const |
bool QIconDragItem::operator== | ( | const QIconDragItem & | i | ) | const |
void QIconDragItem::setData | ( | const QByteArray & | d | ) | [virtual] |
Sets the data for the QIconDragItem to the data stored in the QByteArray d.
virtual void QIconDragItem::setData | ( | const QByteArray & | d | ) | [virtual] |