Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/tasksmodel.cpp
Show First 20 Lines • Show All 1548 Lines • ▼ Show 20 Line(s) | 1547 | { | |||
---|---|---|---|---|---|
1549 | // goes through. | 1549 | // goes through. | ||
1550 | if (sourceParent.isValid()) { | 1550 | if (sourceParent.isValid()) { | ||
1551 | return true; | 1551 | return true; | ||
1552 | } | 1552 | } | ||
1553 | 1553 | | |||
1554 | const QModelIndex &sourceIndex = sourceModel()->index(sourceRow, 0); | 1554 | const QModelIndex &sourceIndex = sourceModel()->index(sourceRow, 0); | ||
1555 | 1555 | | |||
1556 | // In inline grouping mode, filter out group parents. | 1556 | // In inline grouping mode, filter out group parents. | ||
1557 | if (d->flattenGroupsProxyModel && sourceIndex.data(AbstractTasksModel::IsGroupParent).toBool()) { | 1557 | if (d->groupInline && d->flattenGroupsProxyModel | ||
1558 | && sourceIndex.data(AbstractTasksModel::IsGroupParent).toBool()) { | ||||
1558 | return false; | 1559 | return false; | ||
1559 | } | 1560 | } | ||
1560 | 1561 | | |||
1561 | const QString &appId = sourceIndex.data(AbstractTasksModel::AppId).toString(); | 1562 | const QString &appId = sourceIndex.data(AbstractTasksModel::AppId).toString(); | ||
1562 | const QString &appName = sourceIndex.data(AbstractTasksModel::AppName).toString(); | 1563 | const QString &appName = sourceIndex.data(AbstractTasksModel::AppName).toString(); | ||
1563 | 1564 | | |||
1564 | // Filter startup tasks we already have a window task for. | 1565 | // Filter startup tasks we already have a window task for. | ||
1565 | if (sourceIndex.data(AbstractTasksModel::IsStartup).toBool()) { | 1566 | if (sourceIndex.data(AbstractTasksModel::IsStartup).toBool()) { | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |