Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/taskfilterproxymodel.cpp
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Line(s) | |||||
263 | 263 | | |||
264 | void TaskFilterProxyModel::requestVirtualDesktop(const QModelIndex &index, qint32 desktop) | 264 | void TaskFilterProxyModel::requestVirtualDesktop(const QModelIndex &index, qint32 desktop) | ||
265 | { | 265 | { | ||
266 | if (d->sourceTasksModel && index.isValid() && index.model() == this) { | 266 | if (d->sourceTasksModel && index.isValid() && index.model() == this) { | ||
267 | d->sourceTasksModel->requestVirtualDesktop(mapToSource(index), desktop); | 267 | d->sourceTasksModel->requestVirtualDesktop(mapToSource(index), desktop); | ||
268 | } | 268 | } | ||
269 | } | 269 | } | ||
270 | 270 | | |||
271 | void TaskFilterProxyModel::requestActivities(const QModelIndex &index, const QStringList &activities) | ||||
272 | { | ||||
273 | if (d->sourceTasksModel && index.isValid() && index.model() == this) { | ||||
274 | d->sourceTasksModel->requestActivities(mapToSource(index), activities); | ||||
275 | } | ||||
276 | } | ||||
277 | | ||||
271 | void TaskFilterProxyModel::requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry, QObject *delegate) | 278 | void TaskFilterProxyModel::requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry, QObject *delegate) | ||
272 | { | 279 | { | ||
273 | if (index.isValid() && index.model() == this) { | 280 | if (index.isValid() && index.model() == this) { | ||
274 | d->sourceTasksModel->requestPublishDelegateGeometry(mapToSource(index), geometry, delegate); | 281 | d->sourceTasksModel->requestPublishDelegateGeometry(mapToSource(index), geometry, delegate); | ||
275 | } | 282 | } | ||
276 | } | 283 | } | ||
277 | 284 | | |||
278 | bool TaskFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const | 285 | bool TaskFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |