Commit 0f45ff1d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port method to qt6

parent 58052384
Pipeline #193271 passed with stage
in 5 minutes and 39 seconds
......@@ -239,7 +239,11 @@ public:
QStringList formats() const override;
protected:
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QVariant retrieveData(const QString &mimeType, QVariant::Type type) const override;
#else
QVariant retrieveData(const QString &mimeType, QMetaType type) const override;
#endif
private:
mutable QTextDocumentFragment fragment;
......@@ -252,8 +256,11 @@ QStringList IrcViewMimeData::formats() const
else
return QMimeData::formats();
}
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QVariant IrcViewMimeData::retrieveData(const QString &mimeType, QVariant::Type type) const
#else
QVariant IrcViewMimeData::retrieveData(const QString &mimeType, QMetaType type) const
#endif
{
if (!fragment.isEmpty())
{
......
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