qskFindAncestorOf - const version fixed

This commit is contained in:
Uwe Rathmann 2023-03-20 11:01:50 +01:00
parent 7ab7916740
commit 266ccc8f21

View File

@ -96,8 +96,7 @@ inline T qskFindAncestorOf( QQuickItem* item )
template< typename T > template< typename T >
inline T qskFindAncestorOf( const QQuickItem* item ) inline T qskFindAncestorOf( const QQuickItem* item )
{ {
return qskFindAncestorOf< std::remove_const< T > >( return qskFindAncestorOf< T >( const_cast< QQuickItem* >( item ) );
const_cast< QQuickItem* >( item ) );
} }
inline qreal qskHeightForWidth( inline qreal qskHeightForWidth(