X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=taskmodel.h;fp=taskmodel.h;h=0000000000000000000000000000000000000000;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=eab06d1d2daf4b7debb8e76cc50913e88f383350;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/taskmodel.h b/taskmodel.h deleted file mode 100644 index eab06d1..0000000 --- a/taskmodel.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef TASKMODEL_H -#define TASKMODEL_H - -#include -#include - -#include "task.h" - -class BranchItem; -class VymModel; - -class TaskModel : public QAbstractTableModel -{ - Q_OBJECT - -public: - TaskModel(QObject *parent=0); - QModelIndex index (Task* t); - QModelIndex indexRowEnd (Task* t); - Task* getTask (const QModelIndex &ix) const; - int rowCount(const QModelIndex &parent) const; - int columnCount(const QModelIndex &parent) const; - QVariant data(const QModelIndex &index, int role) const; - QVariant headerData(int section, Qt::Orientation orientation, int role) const; - Qt::ItemFlags flags(const QModelIndex &index) const; -// bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole); - bool setData(const QModelIndex &index, Task *t, int role=Qt::EditRole); - void emitDataChanged (Task *t); - bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex(),Task *t=NULL); - bool removeRows(int position, int rows, const QModelIndex &index=QModelIndex()); - - int count (VymModel *model=NULL); - Task* createTask (BranchItem *bi); - void deleteTask (Task* t); - void recalcPriorities(); - - void setShowParentsLevel (uint i); - uint getShowParentsLevel (); - -private: - QList tasks; - uint showParentsLevel; - }; - -#endif