From 1c07c06d8579e1e4c5545baf878ad34662217c38 Mon Sep 17 00:00:00 2001 From: Achraf k Date: Thu, 17 Feb 2022 03:35:26 +0100 Subject: [PATCH] ProgressBar moved - 2 --- components/qtmaterialprogress.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/components/qtmaterialprogress.h b/components/qtmaterialprogress.h index 0e69b1d..44bfeaf 100644 --- a/components/qtmaterialprogress.h +++ b/components/qtmaterialprogress.h @@ -4,9 +4,12 @@ #include #include "lib/qtmaterialtheme.h" -class QtMaterialProgressPrivate; +namespace md +{ -class QtMaterialProgress : public QProgressBar +class ProgressBarPrivate; + +class ProgressBar : public QProgressBar { Q_OBJECT @@ -14,8 +17,8 @@ class QtMaterialProgress : public QProgressBar Q_PROPERTY(QColor backgroundColor WRITE setProgressColor READ backgroundColor) public: - explicit QtMaterialProgress(QWidget *parent = 0); - ~QtMaterialProgress(); + explicit ProgressBar(QWidget *parent = 0); + ~ProgressBar(); void setProgressType(Material::ProgressType type); Material::ProgressType progressType() const; @@ -32,11 +35,11 @@ public: protected: void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE; - const QScopedPointer d_ptr; + const QScopedPointer d_ptr; private: - Q_DISABLE_COPY(QtMaterialProgress) - Q_DECLARE_PRIVATE(QtMaterialProgress) + Q_DISABLE_COPY(ProgressBar) + Q_DECLARE_PRIVATE(ProgressBar) }; - +} #endif // QTMATERIALPROGRESS_H