ProgressBar.hpp
1 #pragma once
2 
3 #include <QGraphicsItem>
4 #include <QRect>
5 
6 class QPainter;
7 class QStyleOptionGraphicsItem;
8 class QWidget;
9 
10 class ProgressBar final : public QGraphicsItem
11 {
12 public:
13  using QGraphicsItem::QGraphicsItem;
14  void setHeight(qreal newHeight);
15 
16  QRectF boundingRect() const override;
17  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
18  override;
19 
20 private:
21  qreal m_height{};
22 };
Definition: ProgressBar.hpp:11