Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/waylandtasksmodel.cpp
Show First 20 Lines • Show All 524 Lines • ▼ Show 20 Line(s) | 524 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | |||
---|---|---|---|---|---|
525 | return; | 525 | return; | ||
526 | } | 526 | } | ||
527 | 527 | | |||
528 | d->windows.at(index.row())->requestToggleMaximized(); | 528 | d->windows.at(index.row())->requestToggleMaximized(); | ||
529 | } | 529 | } | ||
530 | 530 | | |||
531 | void WaylandTasksModel::requestToggleKeepAbove(const QModelIndex &index) | 531 | void WaylandTasksModel::requestToggleKeepAbove(const QModelIndex &index) | ||
532 | { | 532 | { | ||
533 | Q_UNUSED(index) | 533 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | ||
534 | return; | ||||
535 | } | ||||
534 | 536 | | |||
535 | // FIXME Implement. | 537 | d->windows.at(index.row())->requestToggleKeepAbove(); | ||
536 | } | 538 | } | ||
537 | 539 | | |||
538 | void WaylandTasksModel::requestToggleKeepBelow(const QModelIndex &index) | 540 | void WaylandTasksModel::requestToggleKeepBelow(const QModelIndex &index) | ||
539 | { | 541 | { | ||
540 | Q_UNUSED(index) | 542 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | ||
543 | return; | ||||
544 | } | ||||
541 | 545 | | |||
542 | // FIXME Implement. | 546 | d->windows.at(index.row())->requestToggleKeepBelow(); | ||
543 | } | 547 | } | ||
544 | 548 | | |||
545 | void WaylandTasksModel::requestToggleFullScreen(const QModelIndex &index) | 549 | void WaylandTasksModel::requestToggleFullScreen(const QModelIndex &index) | ||
546 | { | 550 | { | ||
547 | Q_UNUSED(index) | 551 | Q_UNUSED(index) | ||
548 | 552 | | |||
549 | // FIXME Implement. | 553 | // FIXME Implement. | ||
550 | } | 554 | } | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |