ProgressBar moved - 2
This commit is contained in:
parent
ff93c8e77a
commit
1c07c06d85
|
@ -4,9 +4,12 @@
|
||||||
#include <QtWidgets/QProgressBar>
|
#include <QtWidgets/QProgressBar>
|
||||||
#include "lib/qtmaterialtheme.h"
|
#include "lib/qtmaterialtheme.h"
|
||||||
|
|
||||||
class QtMaterialProgressPrivate;
|
namespace md
|
||||||
|
{
|
||||||
|
|
||||||
class QtMaterialProgress : public QProgressBar
|
class ProgressBarPrivate;
|
||||||
|
|
||||||
|
class ProgressBar : public QProgressBar
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -14,8 +17,8 @@ class QtMaterialProgress : public QProgressBar
|
||||||
Q_PROPERTY(QColor backgroundColor WRITE setProgressColor READ backgroundColor)
|
Q_PROPERTY(QColor backgroundColor WRITE setProgressColor READ backgroundColor)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit QtMaterialProgress(QWidget *parent = 0);
|
explicit ProgressBar(QWidget *parent = 0);
|
||||||
~QtMaterialProgress();
|
~ProgressBar();
|
||||||
|
|
||||||
void setProgressType(Material::ProgressType type);
|
void setProgressType(Material::ProgressType type);
|
||||||
Material::ProgressType progressType() const;
|
Material::ProgressType progressType() const;
|
||||||
|
@ -32,11 +35,11 @@ public:
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
|
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
const QScopedPointer<QtMaterialProgressPrivate> d_ptr;
|
const QScopedPointer<ProgressBarPrivate> d_ptr;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(QtMaterialProgress)
|
Q_DISABLE_COPY(ProgressBar)
|
||||||
Q_DECLARE_PRIVATE(QtMaterialProgress)
|
Q_DECLARE_PRIVATE(ProgressBar)
|
||||||
};
|
};
|
||||||
|
}
|
||||||
#endif // QTMATERIALPROGRESS_H
|
#endif // QTMATERIALPROGRESS_H
|
||||||
|
|
Loading…
Reference in New Issue