change: change code style to Linux style except indent.
This commit is contained in:
@@ -30,7 +30,8 @@
|
||||
#include "elapsedcounterwidget.h"
|
||||
#include "task/task.h"
|
||||
|
||||
namespace olive {
|
||||
namespace olive
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief A widget that visually represents the status of a Task
|
||||
@@ -41,31 +42,29 @@ namespace olive {
|
||||
*
|
||||
* The main entry point is SetTask() after a Task and TaskViewItem objects are created.
|
||||
*/
|
||||
class TaskViewItem : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
class TaskViewItem : public QFrame {
|
||||
Q_OBJECT
|
||||
public:
|
||||
TaskViewItem(Task *task, QWidget* parent = nullptr);
|
||||
TaskViewItem(Task *task, QWidget *parent = nullptr);
|
||||
|
||||
void Failed();
|
||||
void Failed();
|
||||
|
||||
signals:
|
||||
void TaskCancelled(Task* t);
|
||||
void TaskCancelled(Task *t);
|
||||
|
||||
private:
|
||||
QLabel* task_name_lbl_;
|
||||
QProgressBar* progress_bar_;
|
||||
QPushButton* cancel_btn_;
|
||||
QLabel *task_name_lbl_;
|
||||
QProgressBar *progress_bar_;
|
||||
QPushButton *cancel_btn_;
|
||||
|
||||
QStackedWidget* status_stack_;
|
||||
ElapsedCounterWidget* elapsed_timer_lbl_;
|
||||
QLabel* task_error_lbl_;
|
||||
QStackedWidget *status_stack_;
|
||||
ElapsedCounterWidget *elapsed_timer_lbl_;
|
||||
QLabel *task_error_lbl_;
|
||||
|
||||
Task* task_;
|
||||
Task *task_;
|
||||
|
||||
private slots:
|
||||
void UpdateProgress(double d);
|
||||
|
||||
void UpdateProgress(double d);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user