change: change code style to Linux style except indent.

This commit is contained in:
Mike Solar
2025-08-03 03:09:40 +08:00
parent 65ab76edc8
commit 74f73ab3be
789 changed files with 77113 additions and 68888 deletions
+15 -16
View File
@@ -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);
};
}