Remove pointless const_cast in ProgressWidget
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@@ -27,10 +27,10 @@ class ProgressWidget : public QWidget {
|
||||
|
||||
public slots:
|
||||
/** Watch the progress of a task. */
|
||||
void watch(const Task* task);
|
||||
void watch(Task* task);
|
||||
|
||||
/** Watch the progress of a task, and start it if needed */
|
||||
void start(const Task* task);
|
||||
void start(Task* task);
|
||||
|
||||
/** Blocking way of waiting for a task to finish. */
|
||||
bool exec(std::shared_ptr<Task> task);
|
||||
@@ -50,7 +50,7 @@ class ProgressWidget : public QWidget {
|
||||
private:
|
||||
QLabel* m_label = nullptr;
|
||||
QProgressBar* m_bar = nullptr;
|
||||
const Task* m_task = nullptr;
|
||||
Task* m_task = nullptr;
|
||||
|
||||
bool m_hide_if_inactive = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user