]> git.sven.stormbind.net Git - sven/vym.git/blobdiff - taskmodel.h
New upstream version 2.9.22
[sven/vym.git] / taskmodel.h
diff --git a/taskmodel.h b/taskmodel.h
deleted file mode 100644 (file)
index eab06d1..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef TASKMODEL_H
-#define TASKMODEL_H
-
-#include <QAbstractTableModel>
-#include <QList>
-
-#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 <Task*> tasks;
-    uint showParentsLevel;
- };
-
-#endif