Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/waylandtasksmodel.cpp
Show First 20 Lines • Show All 448 Lines • ▼ Show 20 Line(s) | 448 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | |||
---|---|---|---|---|---|
449 | return; | 449 | return; | ||
450 | } | 450 | } | ||
451 | 451 | | |||
452 | d->windows.at(index.row())->requestToggleMaximized(); | 452 | d->windows.at(index.row())->requestToggleMaximized(); | ||
453 | } | 453 | } | ||
454 | 454 | | |||
455 | void WaylandTasksModel::requestToggleKeepAbove(const QModelIndex &index) | 455 | void WaylandTasksModel::requestToggleKeepAbove(const QModelIndex &index) | ||
456 | { | 456 | { | ||
457 | Q_UNUSED(index) | 457 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | ||
458 | return; | ||||
459 | } | ||||
458 | 460 | | |||
459 | // FIXME Implement. | 461 | d->windows.at(index.row())->requestToggleKeepAbove(); | ||
460 | } | 462 | } | ||
461 | 463 | | |||
462 | void WaylandTasksModel::requestToggleKeepBelow(const QModelIndex &index) | 464 | void WaylandTasksModel::requestToggleKeepBelow(const QModelIndex &index) | ||
463 | { | 465 | { | ||
464 | Q_UNUSED(index) | 466 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | ||
467 | return; | ||||
468 | } | ||||
465 | 469 | | |||
466 | // FIXME Implement. | 470 | d->windows.at(index.row())->requestToggleKeepBelow(); | ||
467 | } | 471 | } | ||
468 | 472 | | |||
469 | void WaylandTasksModel::requestToggleFullScreen(const QModelIndex &index) | 473 | void WaylandTasksModel::requestToggleFullScreen(const QModelIndex &index) | ||
470 | { | 474 | { | ||
471 | Q_UNUSED(index) | 475 | Q_UNUSED(index) | ||
472 | 476 | | |||
473 | // FIXME Implement. | 477 | // FIXME Implement. | ||
474 | } | 478 | } | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |