From 773c8c68cf30960a2dd6e67561dd40bd766930bc Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 3 Jan 2021 18:15:21 +0000 Subject: library: drag and drop support git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9616 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/library/librarymodel.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/plugins/General/library/librarymodel.h') diff --git a/src/plugins/General/library/librarymodel.h b/src/plugins/General/library/librarymodel.h index a13081bdd..a06365330 100644 --- a/src/plugins/General/library/librarymodel.h +++ b/src/plugins/General/library/librarymodel.h @@ -23,6 +23,7 @@ #include #include +#include #include class QSqlDatabase; @@ -35,6 +36,9 @@ public: LibraryModel(QObject *parent = nullptr); ~LibraryModel(); + Qt::ItemFlags flags(const QModelIndex &index) const; + QStringList mimeTypes() const override; + QMimeData *mimeData(const QModelIndexList &indexes) const override; bool canFetchMore(const QModelIndex &parent) const override; void fetchMore(const QModelIndex &parent) override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; @@ -42,12 +46,12 @@ public: QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override; int columnCount(const QModelIndex &parent = QModelIndex()) const override; int rowCount(const QModelIndex &parent = QModelIndex()) const override; - void refresh(); private: - LibraryTreeItem *m_rootItem; + QList getUrls(const QModelIndex &index) const; + LibraryTreeItem *m_rootItem; }; #endif // LIBRARYMODEL_H -- cgit v1.2.3-13-gbd6f