2021-08-24 08:46:26 +02:00
|
|
|
/******************************************************************************
|
2023-04-06 09:23:37 +02:00
|
|
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2021-08-24 08:46:26 +02:00
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QskSkinlet.h>
|
|
|
|
|
|
|
|
class CircularProgressBar;
|
|
|
|
|
|
|
|
class CircularProgressBarSkinlet : public QskSkinlet
|
|
|
|
{
|
|
|
|
Q_GADGET
|
|
|
|
|
|
|
|
using Inherited = QskSkinlet;
|
|
|
|
|
|
|
|
public:
|
|
|
|
enum NodeRole
|
|
|
|
{
|
|
|
|
GrooveRole,
|
|
|
|
BarRole,
|
|
|
|
|
|
|
|
RoleCount,
|
|
|
|
};
|
|
|
|
|
|
|
|
Q_INVOKABLE CircularProgressBarSkinlet( QskSkin* = nullptr );
|
|
|
|
~CircularProgressBarSkinlet() override;
|
|
|
|
|
|
|
|
QRectF subControlRect( const QskSkinnable*,
|
|
|
|
const QRectF&, QskAspect::Subcontrol ) const override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
QSGNode* updateSubNode( const QskSkinnable*,
|
|
|
|
quint8 nodeRole, QSGNode* ) const override;
|
|
|
|
};
|