QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskProgressIndicatorSkinlet.cpp
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#include "QskProgressIndicatorSkinlet.h"
7#include "QskProgressIndicator.h"
8
9QskProgressIndicatorSkinlet::QskProgressIndicatorSkinlet( QskSkin* skin )
10 : Inherited( skin )
11{
12 setNodeRoles( { GrooveRole, FillRole } );
13}
14
15QskProgressIndicatorSkinlet::~QskProgressIndicatorSkinlet()
16{
17}
18
19QSGNode* QskProgressIndicatorSkinlet::updateSubNode(
20 const QskSkinnable* skinnable, quint8 nodeRole, QSGNode* node ) const
21{
22 const auto indicator = static_cast< const QskProgressIndicator* >( skinnable );
23
24 switch( nodeRole )
25 {
26 case GrooveRole:
27 {
28 return updateGrooveNode( indicator, node );
29 }
30
31 case FillRole:
32 {
33 return updateFillNode( indicator, node );
34 }
35 }
36
37 return Inherited::updateSubNode( skinnable, nodeRole, node );
38}