AsyncProgressDialog
ProgressWidget.h
1 #pragma once
2 
3 #include "TimeStamp.h"
4 
5 #include <QWidget>
6 
7 namespace APD
8 {
9 
10 class ProgressWidget : public QWidget
11 {
12  Q_OBJECT
13 
14 public:
15  explicit ProgressWidget(QWidget *parent = nullptr)
16  : QWidget(parent)
17  {}
18 
19 public slots:
20  virtual void setValue(int /*value*/, const QVariant& /*userValue*/, const TimeStamp& /*timeStamp*/) {}
21  virtual void setRange(int /*minimum*/, int /*maximum*/) {}
22  virtual void setText(const QString& /*text*/) {}
23 
24 private:
25  Q_DISABLE_COPY(ProgressWidget)
26 };
27 
28 }
virtual void setRange(int, int)
Definition: ProgressWidget.h:21
Base class for all widgets capable of displaying progress for a TaskThread.
Definition: ProgressWidget.h:10
ProgressWidget(QWidget *parent=nullptr)
Definition: ProgressWidget.h:15
virtual void setText(const QString &)
Definition: ProgressWidget.h:22
virtual void setValue(int, const QVariant &, const TimeStamp &)
Definition: ProgressWidget.h:20