QMimeData: fix the usage of a deprecated function
Task-number: QTBUG-104857 Pick-to: 6.4 6.3 6.2 Change-Id: I85b4aced4db2f1a77e6d0734e082f129b8a263bf Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
12535b0c03
commit
4262e3b6ef
@ -137,9 +137,7 @@ QVariant QMimeDataPrivate::retrieveTypedData(const QString &format, QMetaType ty
|
||||
}
|
||||
case QMetaType::QColor: {
|
||||
QVariant newData = data;
|
||||
QT_WARNING_PUSH QT_WARNING_DISABLE_DEPRECATED
|
||||
newData.convert(QMetaType::QColor);
|
||||
QT_WARNING_POP
|
||||
newData.convert(QMetaType(QMetaType::QColor));
|
||||
return newData;
|
||||
}
|
||||
case QMetaType::QVariantList: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user