Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/waylandtasksmodel.cpp
Show First 20 Lines • Show All 456 Lines • ▼ Show 20 Line(s) | 454 | { | |||
---|---|---|---|---|---|
457 | 457 | | |||
458 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | 458 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | ||
459 | return; | 459 | return; | ||
460 | } | 460 | } | ||
461 | 461 | | |||
462 | d->windows.at(index.row())->requestVirtualDesktop(desktop); | 462 | d->windows.at(index.row())->requestVirtualDesktop(desktop); | ||
463 | } | 463 | } | ||
464 | 464 | | |||
465 | void WaylandTasksModel::requestActivities(const QModelIndex &index, const QStringList &activities) | ||||
466 | { | ||||
467 | Q_UNUSED(index) | ||||
468 | Q_UNUSED(activities) | ||||
469 | } | ||||
470 | | ||||
465 | void WaylandTasksModel::requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry, QObject *delegate) | 471 | void WaylandTasksModel::requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry, QObject *delegate) | ||
466 | { | 472 | { | ||
467 | /* | 473 | /* | ||
468 | FIXME: This introduces the dependency on Qt5::Quick. I might prefer | 474 | FIXME: This introduces the dependency on Qt5::Quick. I might prefer | ||
469 | reversing this and publishing the window pointer through the model, | 475 | reversing this and publishing the window pointer through the model, | ||
470 | then calling PlasmaWindow::setMinimizeGeometry in the applet backend, | 476 | then calling PlasmaWindow::setMinimizeGeometry in the applet backend, | ||
471 | rather than hand delegate items into the lib, keeping the lib more UI- | 477 | rather than hand delegate items into the lib, keeping the lib more UI- | ||
472 | agnostic. | 478 | agnostic. | ||
Show All 36 Lines |