Fix signature of canDropMimeData used in code snippet
Change-Id: I9026e11630651e740282466551ad78883a0421ec Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
ede0082f86
commit
b22fe78d85
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user