* @brief Dispatches to the appropriate tiling helper based on window count. */
| 457 | * @brief Dispatches to the appropriate tiling helper based on window count. |
| 458 | */ |
| 459 | static 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 |