Fix signature of canDropMimeData used in code snippet

Change-Id: I9026e11630651e740282466551ad78883a0421ec
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Albert Astals Cid 2021-03-03 16:01:13 +01:00
parent ede0082f86
commit b22fe78d85
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ DragDropListModel::DragDropListModel(const QStringList &strings,
//! [0]
bool DragDropListModel::canDropMimeData(const QMimeData *data,
Qt::DropAction action, int row, int column, const QModelIndex &parent)
Qt::DropAction action, int row, int column, const QModelIndex &parent) const
{
Q_UNUSED(action);
Q_UNUSED(row);

View File

@ -64,7 +64,7 @@ public:
Qt::ItemFlags flags(const QModelIndex &index) const override;
bool canDropMimeData(const QMimeData *data, Qt::DropAction action,
int row, int column, const QModelIndex &parent) override;
int row, int column, const QModelIndex &parent) const override;
bool dropMimeData(const QMimeData *data, Qt::DropAction action,
int row, int column, const QModelIndex &parent) override;
QMimeData *mimeData(const QModelIndexList &indexes) const override;