* @brief Two windows split side-by-side or stacked depending on orientation. */
| 260 | * @brief Two windows split side-by-side or stacked depending on orientation. |
| 261 | */ |
| 262 | static void tileTwo(const QList<QQuickItem*>& wins, const TileEnv& env) |
| 263 | { |
| 264 | if (env.isLandscape) { |
| 265 | const int w = (env.availW - env.spacing) / 2; |
| 266 | placeWindow(wins[0], env.margin, env.margin, w, env.availH); |
| 267 | placeWindow(wins[1], env.margin + w + env.spacing, env.margin, w, env.availH); |
| 268 | return; |
| 269 | } |
| 270 | |
| 271 | const int h = (env.availH - env.spacing) / 2; |
| 272 | placeWindow(wins[0], env.margin, env.margin, env.availW, h); |
| 273 | placeWindow(wins[1], env.margin, env.margin + h + env.spacing, env.availW, h); |
| 274 | } |
| 275 | |
| 276 | /** |
| 277 | * @brief Three windows in a master + 2-stack arrangement. |
no test coverage detected