Commit 1a74ec79 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix signature method for building against qt6

parent a77f92d3
......@@ -35,7 +35,11 @@ void EffectBasket::slotReloadBasket()
sortItems();
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData *EffectBasket::mimeData(const QList<QListWidgetItem *> list) const
#else
QMimeData *EffectBasket::mimeData(const QList<QListWidgetItem *> &list) const
#endif
{
if (list.isEmpty()) {
return new QMimeData;
......
......@@ -21,7 +21,11 @@ public:
explicit EffectBasket(QWidget *parent);
protected:
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData *mimeData(const QList<QListWidgetItem *> list) const override;
#else
QMimeData *mimeData(const QList<QListWidgetItem *> &list) const override;
#endif
void showEvent(QShowEvent *event) override;
public slots:
......
......@@ -40,7 +40,11 @@ LibraryTree::LibraryTree(QWidget *parent)
}
// virtual
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData *LibraryTree::mimeData(const QList<QTreeWidgetItem *> list) const
#else
QMimeData *LibraryTree::mimeData(const QList<QTreeWidgetItem *> &list) const
#endif
{
QList<QUrl> urls;
urls.reserve(list.count());
......
......@@ -131,7 +131,11 @@ public:
protected:
QStringList mimeTypes() const override;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData *mimeData(const QList<QTreeWidgetItem *> list) const override;
#else
QMimeData *mimeData(const QList<QTreeWidgetItem *> &list) const override;
#endif
void dropEvent(QDropEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
......
Supports Markdown
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