avoid dprecated APIs
This commit is contained in:
parent
5b218f6f08
commit
60c8ec4746
@ -389,7 +389,7 @@ QSizeF qskEffectiveSizeHint( const QQuickItem* item,
|
|||||||
};
|
};
|
||||||
|
|
||||||
const QVariant v = item->property( properties[ whichHint ] );
|
const QVariant v = item->property( properties[ whichHint ] );
|
||||||
if ( v.canConvert( QMetaType::QSizeF ) )
|
if ( v.canConvert< QSizeF >() )
|
||||||
hint = v.toSizeF();
|
hint = v.toSizeF();
|
||||||
|
|
||||||
if ( whichHint == Qt::PreferredSize )
|
if ( whichHint == Qt::PreferredSize )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user