Public Types | |
enum | Columns { Id, Type, Status, User, Project, StartTime, Deadline, Duration, Fields, LastColumn } |
Public Member Functions | |
TaskModel (domain::TaskManagerData *data, QList< const domain::Task * > shownTasks) | |
TaskModel (domain::TaskManagerData *data) | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
const domain::Task * | taskForIndex (const QModelIndex &index) const |
QModelIndex | indexForTask (const domain::Task *task) const |
Private Member Functions | |
QString | projectString (const domain::Task *task) const |
QStringList | fieldsString (const domain::Task *task) const |
QList< const domain::Task * > | tasks () const |
Private Attributes | |
QList< const domain::Task * > | taskList |
bool | showAll |
Definition at line 14 of file taskmodel.h.