Skip to content

Commit

Permalink
Fix signature of canDropMimeData used in code snippet
Browse files Browse the repository at this point in the history
Change-Id: I9026e11630651e740282466551ad78883a0421ec
Reviewed-by: Fabian Kosmale <[email protected]>
  • Loading branch information
albert-astals-cid-kdab committed Mar 4, 2021
1 parent ede0082 commit b22fe78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/widgets/doc/snippets/qlistview-dnd/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/doc/snippets/qlistview-dnd/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class DragDropListModel : public QStringListModel
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;
Expand Down

0 comments on commit b22fe78

Please sign in to comment.