2018-02-27 18:06:05 +01:00
|
|
|
#ifndef QPROGRESSINDICATORSPINNING_H
|
|
|
|
#define QPROGRESSINDICATORSPINNING_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QPointer>
|
|
|
|
|
|
|
|
class QProgressIndicatorSpinningPrivate;
|
|
|
|
class QProgressIndicatorSpinning : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
// Matches NSProgressIndicatorThickness
|
|
|
|
enum Thickness {
|
|
|
|
Default = 14,
|
|
|
|
Small = 10,
|
|
|
|
Large = 18,
|
|
|
|
Aqua = 12
|
|
|
|
};
|
|
|
|
|
2018-07-01 22:26:46 +02:00
|
|
|
explicit QProgressIndicatorSpinning(QWidget *parent,
|
|
|
|
Thickness thickness = Default);
|
2018-02-27 18:06:05 +01:00
|
|
|
public slots:
|
|
|
|
void animate(bool animate = true);
|
|
|
|
private:
|
|
|
|
friend class QProgressIndicatorSpinningPrivate;
|
|
|
|
QPointer<QProgressIndicatorSpinningPrivate> pimpl;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QPROGRESSINDICATORSPINNING_H
|