28 if (!
data->hasFormat(
"application/vnd.text.list"))
77 for (
const QString &
text : std::as_const(newItems)) {
108 if (
index.isValid()) {
123 types <<
"application/vnd.text.list";
QMimeData * mimeData(const QModelIndexList &indexes) const override
[7]
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
QStringList mimeTypes() const override
[8]
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override
[0]
Qt::DropActions supportedDropActions() const override
[9]
Qt::ItemFlags flags(const QModelIndex &index) const override
[6]
DragDropListModel(const QStringList &strings, QObject *parent=nullptr)
QObject * parent() const
Returns a pointer to the parent object.
char * data()
\macro QT_NO_CAST_FROM_BYTEARRAY
\inmodule QtCore\reentrant
void setData(const QString &mimetype, const QByteArray &data)
Sets the data associated with the MIME type given by mimeType to the specified data.
bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex()) override
Inserts count rows into the model, beginning at the given row.
Qt::ItemFlags flags(const QModelIndex &index) const override
Returns the flags for the item with the given index.
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of rows in the model.
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
Sets the data for the specified role in the item with the given index in the model,...
\macro QT_RESTRICTED_CAST_FROM_ASCII
GLsizei GLenum GLenum * types
GLsizei const GLchar ** strings
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent