Commit a1b028be authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

mimeData signature was changed in qt6 (scripted)

parent 4694fe0f
Pipeline #74031 passed with stage
in 8 minutes and 48 seconds
......@@ -999,7 +999,11 @@ QStringList Playlist::mimeTypes() const
return QStringList("text/uri-list");
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData* Playlist::mimeData(const QList<QTreeWidgetItem *> items) const
#else
QMimeData* Playlist::mimeData(const QList<QTreeWidgetItem *> &items) const
#endif
{
QList<QUrl> urls;
for(const auto &item : items) {
......
......@@ -455,7 +455,11 @@ protected:
virtual bool eventFilter(QObject *watched, QEvent *e) override;
virtual void keyPressEvent(QKeyEvent *e) override;
QStringList mimeTypes() const override;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData* mimeData(const QList<QTreeWidgetItem *> items) const override;
#else
QMimeData* mimeData(const QList<QTreeWidgetItem *> &items) const override;
#endif
virtual bool dropMimeData(QTreeWidgetItem *parent, int index, const QMimeData *data, Qt::DropAction action) override;
virtual void dropEvent(QDropEvent *e) override;
virtual void dragEnterEvent(QDragEnterEvent *e) override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment