Commit 774cb28d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Signature was changed in qt6

parent b6962a2d
Pipeline #73992 passed with stage
in 10 minutes and 5 seconds
......@@ -320,7 +320,11 @@ QStringList TemplateListWidget::mimeTypes() const
return lst;
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData *TemplateListWidget::mimeData(const QList<QListWidgetItem *> items) const
#else
QMimeData *TemplateListWidget::mimeData(const QList<QListWidgetItem *> &items) const
#endif
{
if (items.isEmpty()) {
return nullptr;
......
......@@ -42,8 +42,11 @@ public:
protected:
QStringList mimeTypes() const override;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData *mimeData(const QList<QListWidgetItem *> items) const override;
#else
QMimeData *mimeData(const QList<QListWidgetItem *> &items) const override;
#endif
void dropEvent(QDropEvent *event) override;
enum TemplateData { Text = Qt::UserRole + 1, DefaultTemplate = Qt::UserRole + 2 };
......
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