diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-09-10 19:51:38 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-09-21 14:56:09 +0200 |
commit | 848927b688d4709d0b71590518e2c32fe7866147 (patch) | |
tree | 67c7db42436563299ab8fc713dbc91ce31eaf508 /src/plugins/platforms/qnx | |
parent | cf015cd08bc7a977b6bacac3575952a77e0c0cad (diff) |
Cleanup API of QMimeData
Do not use QVariant::Type anymore, instead use QMetaType
For some reason, this pushed the qvariant autotest over the limit where
MSVC requires the /bigobj flag, so add that one.
[ChangeLog][QtCore][QMimeData] The signature of the virtual retrieveData()
function has changed and now takes a QMetaType instead of a QVariant::Type.
Change-Id: Ib46773bd731ee2177b1ef74d8162d744be7017ef
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/plugins/platforms/qnx')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxclipboard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/qnx/qqnxclipboard.cpp b/src/plugins/platforms/qnx/qqnxclipboard.cpp index 78174549b1..437417a2d1 100644 --- a/src/plugins/platforms/qnx/qqnxclipboard.cpp +++ b/src/plugins/platforms/qnx/qqnxclipboard.cpp @@ -141,9 +141,9 @@ public: } protected: - QVariant retrieveData(const QString &mimetype, QVariant::Type preferredType) const override + QVariant retrieveData(const QString &mimetype, QMetaType preferredType) const override { - qClipboardDebug() << "mimetype=" << mimetype << "preferredType=" << preferredType; + qClipboardDebug() << "mimetype=" << mimetype << "preferredType=" << preferredType.name(); if (is_clipboard_format_present(mimetype.toUtf8().constData()) != 0) return QMimeData::retrieveData(mimetype, preferredType); |