forked from qt-creator/qt-creator
QmlDesigner: Fix deprecated function calls
count() -> size() userType() -> typeId() type() -> typeId() Fixes: QTCREATORBUG-29237 Change-Id: Ic63b79f6fab1f6ed5227d97aa12dcbfdebb4f05f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -338,7 +338,7 @@ void CurveEditorView::commitKeyframes(TreeItem *item)
|
||||
attachEasingCurve(group, pos.x(), segment.easingCurve());
|
||||
} else if (frame.interpolation() == Keyframe::Interpolation::Easing) {
|
||||
QVariant data = frame.data();
|
||||
if (data.type() == static_cast<int>(QMetaType::QEasingCurve))
|
||||
if (data.typeId() == static_cast<int>(QMetaType::QEasingCurve))
|
||||
attachEasingCurve(group, pos.x(), data.value<QEasingCurve>());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user