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* QskScrollViewSkinlet::contentsNode( const QskScrollView* scrollView )
|
||||||
{
|
{
|
||||||
QSGNode* node = const_cast< QSGNode* >( qskPaintNode( scrollView ) );
|
if ( auto node = const_cast< QSGNode* >( qskPaintNode( scrollView ) ) )
|
||||||
if ( node )
|
|
||||||
{
|
{
|
||||||
node = QskSGNode::findChildNode( node, ContentsRootRole );
|
node = QskSGNode::findChildNode( node, ContentsRootRole );
|
||||||
if ( node )
|
if ( node )
|
||||||
|
|
|
@ -26,7 +26,9 @@ class QSK_EXPORT QskScrollViewSkinlet : public QskSkinlet
|
||||||
HorizontalScrollHandleRole,
|
HorizontalScrollHandleRole,
|
||||||
|
|
||||||
VerticalScrollBarRole,
|
VerticalScrollBarRole,
|
||||||
VerticalScrollHandleRole
|
VerticalScrollHandleRole,
|
||||||
|
|
||||||
|
RoleCount
|
||||||
};
|
};
|
||||||
|
|
||||||
Q_INVOKABLE QskScrollViewSkinlet( QskSkin* = nullptr );
|
Q_INVOKABLE QskScrollViewSkinlet( QskSkin* = nullptr );
|
||||||
|
|
Loading…
Reference in New Issue