2020-07-31 14:57:22 +00:00
|
|
|
/******************************************************************************
|
2024-01-17 13:31:45 +00:00
|
|
|
* QSkinny - Copyright (C) The authors
|
2023-04-06 07:23:37 +00:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2020-07-31 14:57:22 +00:00
|
|
|
*****************************************************************************/
|
|
|
|
|
2020-08-01 15:51:45 +00:00
|
|
|
#ifndef QSK_PROGRESS_BAR_H
|
|
|
|
#define QSK_PROGRESS_BAR_H
|
2020-07-31 14:57:22 +00:00
|
|
|
|
2023-07-25 06:56:21 +00:00
|
|
|
#include "QskProgressIndicator.h"
|
2020-07-31 14:57:22 +00:00
|
|
|
|
2023-07-25 06:56:21 +00:00
|
|
|
class QSK_EXPORT QskProgressBar : public QskProgressIndicator
|
2020-07-31 14:57:22 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_PROPERTY( Qt::Orientation orientation READ orientation
|
2020-08-09 09:50:34 +00:00
|
|
|
WRITE setOrientation NOTIFY orientationChanged )
|
2020-07-31 14:57:22 +00:00
|
|
|
|
2023-07-25 06:56:21 +00:00
|
|
|
using Inherited = QskProgressIndicator;
|
2020-07-31 14:57:22 +00:00
|
|
|
|
|
|
|
public:
|
2023-07-25 06:56:21 +00:00
|
|
|
QSK_SUBCONTROLS( Groove, Fill )
|
2020-07-31 14:57:22 +00:00
|
|
|
|
2020-08-01 15:51:45 +00:00
|
|
|
QskProgressBar( Qt::Orientation, QQuickItem* parent = nullptr );
|
|
|
|
QskProgressBar( Qt::Orientation, qreal min, qreal max, QQuickItem* parent = nullptr );
|
|
|
|
QskProgressBar( const QskIntervalF&, QQuickItem* parent = nullptr );
|
|
|
|
QskProgressBar( qreal min, qreal max, QQuickItem* parent = nullptr );
|
|
|
|
QskProgressBar( QQuickItem* parent = nullptr );
|
2020-07-31 14:57:22 +00:00
|
|
|
|
2020-08-01 15:51:45 +00:00
|
|
|
~QskProgressBar() override;
|
2020-07-31 14:57:22 +00:00
|
|
|
|
2023-02-15 15:37:54 +00:00
|
|
|
QskAspect::Variation effectiveVariation() const override;
|
2020-07-31 14:57:22 +00:00
|
|
|
|
2023-07-25 06:56:21 +00:00
|
|
|
Qt::Orientation orientation() const;
|
|
|
|
void setOrientation( Qt::Orientation orientation );
|
2020-07-31 14:57:22 +00:00
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void orientationChanged( Qt::Orientation );
|
|
|
|
|
|
|
|
private:
|
|
|
|
class PrivateData;
|
|
|
|
std::unique_ptr< PrivateData > m_data;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|