diff options
author | The Qt Project <gerrit-noreply@qt-project.org> | 2019-10-14 08:49:14 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2019-10-14 08:49:14 +0000 |
commit | eba59bfd14d0ea29f36e80be81137d26cc67e23a (patch) | |
tree | 69ff8601b3d4a62bea38e1a32245f45cb744aaac /examples/widgets/animation/sub-attaq/progressitem.h | |
parent | f03ac58b1ecc24f01cb83b275a9b6088f9483545 (diff) | |
parent | f4b4c4f79b629498f3cddbbc10df8c1b4d6020d9 (diff) |
Merge "Merge remote-tracking branch 'origin/wip/qt6' into wip/cmake" into wip/cmake
Diffstat (limited to 'examples/widgets/animation/sub-attaq/progressitem.h')
-rw-r--r-- | examples/widgets/animation/sub-attaq/progressitem.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/widgets/animation/sub-attaq/progressitem.h b/examples/widgets/animation/sub-attaq/progressitem.h index 23f5407978..f76b168151 100644 --- a/examples/widgets/animation/sub-attaq/progressitem.h +++ b/examples/widgets/animation/sub-attaq/progressitem.h @@ -52,19 +52,19 @@ #define PROGRESSITEM_H //Qt -#include <QtWidgets/QGraphicsTextItem> +#include <QGraphicsTextItem> class ProgressItem : public QGraphicsTextItem { public: - ProgressItem(QGraphicsItem * parent = 0); + ProgressItem(QGraphicsItem *parent = nullptr); void setLevel(int level); void setScore(int score); private: void updateProgress(); - int currentLevel; - int currentScore; + int currentLevel = 1; + int currentScore = 0; }; #endif // PROGRESSITEM_H |