AsyncProgressDialog
ProgressBar.h
1 #pragma once
2 
3 #include "ProgressWidget.h"
4 
5 #include <memory>
6 
7 class QProgressBar;
8 
9 namespace APD
10 {
11 
13 {
14  Q_OBJECT
15 public:
16  explicit ProgressBar(QWidget *parent = nullptr);
17  ~ProgressBar() override;
18 
19  QProgressBar* progressBar() const;
20 
21 public slots:
22  void setValue(int value, const QVariant&, const TimeStamp&) override;
23  void setRange(int minimum, int maximum) override;
24 
25 private:
26  Q_DISABLE_COPY(ProgressBar)
27 
28  class Impl;
29  std::unique_ptr<Impl> m_impl;
30 };
31 
32 }
Base class for all widgets capable of displaying progress for a TaskThread.
Definition: ProgressWidget.h:10
A wrapper around QProgressBar, which can be added to AsyncProgressDialog.
Definition: ProgressBar.h:12
void setValue(int value, const QVariant &, const TimeStamp &) override
Definition: ProgressBar.cpp:58
void setRange(int minimum, int maximum) override
Definition: ProgressBar.cpp:66
QProgressBar * progressBar() const
Definition: ProgressBar.cpp:50
ProgressBar(QWidget *parent=nullptr)
Definition: ProgressBar.cpp:39