Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
model.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#ifndef MODEL_H
5#define MODEL_H
6
7#include <QObject>
8#include <QStringListModel>
9
11{
13
14public:
16
17 Qt::ItemFlags flags(const QModelIndex &index) const override;
18
19 bool canDropMimeData(const QMimeData *data, Qt::DropAction action,
20 int row, int column, const QModelIndex &parent) const override;
21 bool dropMimeData(const QMimeData *data, Qt::DropAction action,
22 int row, int column, const QModelIndex &parent) override;
23 QMimeData *mimeData(const QModelIndexList &indexes) const override;
24 QStringList mimeTypes() const override;
25 Qt::DropActions supportedDropActions() const override;
26};
27
28#endif
QMimeData * mimeData(const QModelIndexList &indexes) const override
[7]
Definition model.cpp:100
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
Definition model.cpp:38
QStringList mimeTypes() const override
[8]
Definition model.cpp:120
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override
[0]
Definition model.cpp:21
Qt::DropActions supportedDropActions() const override
[9]
Definition model.cpp:129
Qt::ItemFlags flags(const QModelIndex &index) const override
[6]
Definition model.cpp:88