minor improvements

This commit is contained in:
Uwe Rathmann 2021-12-22 15:07:51 +01:00
parent 3842ca36a3
commit 28024d80d9
2 changed files with 4 additions and 3 deletions

View File

@ -167,8 +167,7 @@ QSGNode* QskScrollViewSkinlet::updateContentsNode(
QSGNode* QskScrollViewSkinlet::contentsNode( const QskScrollView* scrollView )
{
QSGNode* node = const_cast< QSGNode* >( qskPaintNode( scrollView ) );
if ( node )
if ( auto node = const_cast< QSGNode* >( qskPaintNode( scrollView ) ) )
{
node = QskSGNode::findChildNode( node, ContentsRootRole );
if ( node )

View File

@ -26,7 +26,9 @@ class QSK_EXPORT QskScrollViewSkinlet : public QskSkinlet
HorizontalScrollHandleRole,
VerticalScrollBarRole,
VerticalScrollHandleRole
VerticalScrollHandleRole,
RoleCount
};
Q_INVOKABLE QskScrollViewSkinlet( QskSkin* = nullptr );