minor improvements
This commit is contained in:
parent
3842ca36a3
commit
28024d80d9
|
@ -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 )
|
||||
|
|
|
@ -26,7 +26,9 @@ class QSK_EXPORT QskScrollViewSkinlet : public QskSkinlet
|
|||
HorizontalScrollHandleRole,
|
||||
|
||||
VerticalScrollBarRole,
|
||||
VerticalScrollHandleRole
|
||||
VerticalScrollHandleRole,
|
||||
|
||||
RoleCount
|
||||
};
|
||||
|
||||
Q_INVOKABLE QskScrollViewSkinlet( QskSkin* = nullptr );
|
||||
|
|
Loading…
Reference in New Issue