blob: 81dcc3f7085ffc6e5c07ff1b2cf4b130b33aba8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef PROGRESSITEM_H
#define PROGRESSITEM_H
//Qt
#include <QGraphicsTextItem>
class ProgressItem : public QGraphicsTextItem
{
public:
ProgressItem(QGraphicsItem *parent = nullptr);
void setLevel(int level);
void setScore(int score);
private:
void updateProgress();
int currentLevel = 1;
int currentScore = 0;
};
#endif // PROGRESSITEM_H
|