AsyncProgressDialog
ProgressOutput.h
1 #pragma once
2 
3 #include "ProgressWidget.h"
4 
5 #include <memory>
6 
7 class QPlainTextEdit;
8 
9 namespace APD
10 {
11 
13 {
14  Q_OBJECT
15 
16 public:
17  explicit ProgressOutput(QWidget *parent = nullptr);
18  ~ProgressOutput();
19 
20  QPlainTextEdit* plainTextEdit() const;
21 
22 public slots:
23  void setText(const QString& text) override;
24 
25 private:
26  Q_DISABLE_COPY(ProgressOutput)
27 
28  class Impl;
29  std::unique_ptr<Impl> m_impl;
30 };
31 
32 }
A wrapper around QPlainTextEdit, which can be added to AsyncProgressDialog.
Definition: ProgressOutput.h:12
Base class for all widgets capable of displaying progress for a TaskThread.
Definition: ProgressWidget.h:10
ProgressOutput(QWidget *parent=nullptr)
Definition: ProgressOutput.cpp:43
QPlainTextEdit * plainTextEdit() const
Definition: ProgressOutput.cpp:54
void setText(const QString &text) override
Definition: ProgressOutput.cpp:62