Commit 3ed58fff authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

mimeData signature was changed in qt6

parent b5d115f0
...@@ -97,7 +97,11 @@ DialogViewConfigurationWidget::DialogViewConfigurationWidget(QWidget *parent) ...@@ -97,7 +97,11 @@ DialogViewConfigurationWidget::DialogViewConfigurationWidget(QWidget *parent)
setAlternatingRowColors(true); setAlternatingRowColors(true);
} }
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData* DialogViewConfigurationWidget::mimeData(const QList<QListWidgetItem*> items) const QMimeData* DialogViewConfigurationWidget::mimeData(const QList<QListWidgetItem*> items) const
#else
QMimeData* DialogViewConfigurationWidget::mimeData(const QList<QListWidgetItem *> &items) const
#endif
{ {
if (items.isEmpty()) if (items.isEmpty())
return 0; return 0;
......
...@@ -80,7 +80,11 @@ public: ...@@ -80,7 +80,11 @@ public:
void dropped(DialogViewConfigurationWidget* list, int index, DialogViewConfigurationItem* item); void dropped(DialogViewConfigurationWidget* list, int index, DialogViewConfigurationItem* item);
protected: protected:
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData* mimeData(const QList<QListWidgetItem*> items) const override; QMimeData* mimeData(const QList<QListWidgetItem*> items) const override;
#else
QMimeData* mimeData(const QList<QListWidgetItem *> &items) const override;
#endif
bool dropMimeData(int index, const QMimeData * mimeData, Qt::DropAction action) override; bool dropMimeData(int index, const QMimeData * mimeData, Qt::DropAction action) override;
Qt::DropActions supportedDropActions() const override Qt::DropActions supportedDropActions() const 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