Commit 21caef7d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

mimeData signature was changed in qt6 (ported by script)

parent f98fba70
...@@ -749,7 +749,11 @@ FunctionListWidget::FunctionListWidget( QWidget * parent ) ...@@ -749,7 +749,11 @@ FunctionListWidget::FunctionListWidget( QWidget * parent )
} }
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData * FunctionListWidget::mimeData( const QList<QListWidgetItem *> items ) const QMimeData * FunctionListWidget::mimeData( const QList<QListWidgetItem *> items ) const
#else
QMimeData * FunctionListWidget::mimeData(const QList<QListWidgetItem *> &items) const
#endif
{ {
QDomDocument doc( QStringLiteral("kmpdoc") ); QDomDocument doc( QStringLiteral("kmpdoc") );
QDomElement root = doc.createElement( QStringLiteral("kmpdoc") ); QDomElement root = doc.createElement( QStringLiteral("kmpdoc") );
......
...@@ -196,7 +196,11 @@ class FunctionListWidget : public QListWidget ...@@ -196,7 +196,11 @@ class FunctionListWidget : public QListWidget
protected: protected:
void dragEnterEvent( QDragEnterEvent * event ) Q_DECL_OVERRIDE; void dragEnterEvent( QDragEnterEvent * event ) Q_DECL_OVERRIDE;
void dropEvent( QDropEvent * event ) Q_DECL_OVERRIDE; void dropEvent( QDropEvent * event ) Q_DECL_OVERRIDE;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QMimeData * mimeData( const QList<QListWidgetItem *> items ) const Q_DECL_OVERRIDE; QMimeData * mimeData( const QList<QListWidgetItem *> items ) const Q_DECL_OVERRIDE;
#else
QMimeData * mimeData(const QList<QListWidgetItem *> &items) const Q_DECL_OVERRIDE;
#endif
QStringList mimeTypes() const Q_DECL_OVERRIDE; QStringList mimeTypes() const Q_DECL_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