change: change code style to Linux style except indent.
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user