Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/tasksmodel.cpp
Show First 20 Lines • Show All 1706 Lines • ▼ Show 20 Line(s) | 1704 | } else { | |||
---|---|---|---|---|---|
1707 | if (childRow < rowCount(parent)) { | 1707 | if (childRow < rowCount(parent)) { | ||
1708 | return parent.child(childRow, 0); | 1708 | return parent.child(childRow, 0); | ||
1709 | } | 1709 | } | ||
1710 | } | 1710 | } | ||
1711 | 1711 | | |||
1712 | return QModelIndex(); | 1712 | return QModelIndex(); | ||
1713 | } | 1713 | } | ||
1714 | 1714 | | |||
1715 | QPersistentModelIndex TasksModel::makePeristentModelndex(int row, int childCount) const | ||||
1716 | { | ||||
1717 | return QPersistentModelIndex(makeModelIndex(row, childCount)); | ||||
1718 | } | ||||
1719 | | ||||
1715 | void TasksModel::classBegin() | 1720 | void TasksModel::classBegin() | ||
1716 | { | 1721 | { | ||
1717 | d->usedByQml = true; | 1722 | d->usedByQml = true; | ||
1718 | } | 1723 | } | ||
1719 | 1724 | | |||
1720 | void TasksModel::componentComplete() | 1725 | void TasksModel::componentComplete() | ||
1721 | { | 1726 | { | ||
1722 | d->componentComplete = true; | 1727 | d->componentComplete = true; | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |