MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / dispatchTile

Function dispatchTile

app/src/UI/WindowManager.cpp:459–484  ·  view source on GitHub ↗

* @brief Dispatches to the appropriate tiling helper based on window count. */

Source from the content-addressed store, hash-verified

457 * @brief Dispatches to the appropriate tiling helper based on window count.
458 */
459static void dispatchTile(const QList<QQuickItem*>& wins, const TileEnv& env)
460{
461 switch (wins.size()) {
462 case 1:
463 tileOne(wins, env);
464 return;
465 case 2:
466 tileTwo(wins, env);
467 return;
468 case 3:
469 tileThree(wins, env);
470 return;
471 case 4:
472 tileFour(wins, env);
473 return;
474 case 5:
475 tileFive(wins, env);
476 return;
477 case 6:
478 tileSix(wins, env);
479 return;
480 default:
481 tileGrid(wins, env);
482 return;
483 }
484}
485
486//--------------------------------------------------------------------------------------------------
487// Constructor & initialization

Callers 1

autoLayoutMethod · 0.85

Calls 8

tileOneFunction · 0.85
tileTwoFunction · 0.85
tileThreeFunction · 0.85
tileFourFunction · 0.85
tileFiveFunction · 0.85
tileSixFunction · 0.85
tileGridFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected