MCPcopy Create free account
hub / github.com/Sonic-DE/sonic-win / createModel

Method createModel

src/tabbox/tabboxhandler.cpp:499–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499void TabBoxHandler::createModel(bool partialReset)
500{
501 d->clientModel()->createClientList(partialReset);
502 // TODO: C++11 use lambda function
503 bool lastRaised = false;
504 bool lastRaisedSucc = false;
505 const auto clients = stackingOrder();
506 for (Window *window : clients) {
507 if (window == d->lastRaisedClient) {
508 lastRaised = true;
509 }
510 if (window == d->lastRaisedClientSucc) {
511 lastRaisedSucc = true;
512 }
513 }
514 if (d->lastRaisedClient && !lastRaised) {
515 d->lastRaisedClient = nullptr;
516 }
517 if (d->lastRaisedClientSucc && !lastRaisedSucc) {
518 d->lastRaisedClientSucc = nullptr;
519 }
520}
521
522QModelIndex TabBoxHandler::first() const
523{

Callers 1

resetMethod · 0.80

Calls 2

createClientListMethod · 0.80
clientModelMethod · 0.80

Tested by

no test coverage detected