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
+13 -14
View File
@@ -26,7 +26,8 @@
#include "widget/taskview/taskviewitem.h"
namespace olive {
namespace olive
{
/**
* @brief A widget that shows a list of Tasks
@@ -36,34 +37,32 @@ namespace olive {
* is necessary since TaskViewItem will automatically delete itself (thus removing itself from the TaskView) when the
* Task finishes.
*/
class TaskView : public QScrollArea
{
Q_OBJECT
class TaskView : public QScrollArea {
Q_OBJECT
public:
TaskView(QWidget* parent);
TaskView(QWidget *parent);
signals:
void TaskCancelled(Task* t);
void TaskCancelled(Task *t);
public slots:
/**
/**
* @brief Creates a TaskViewItem, connects it to a Task, and adds it to this widget
*
* Connect this to TaskManager::TaskAdded().
*/
void AddTask(Task* t);
void AddTask(Task *t);
void TaskFailed(Task* t);
void TaskFailed(Task *t);
void RemoveTask(Task* t);
void RemoveTask(Task *t);
private:
QWidget* central_widget_;
QWidget *central_widget_;
QVBoxLayout* layout_;
QHash<Task*, TaskViewItem*> items_;
QVBoxLayout *layout_;
QHash<Task *, TaskViewItem *> items_;
};
}