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

Function tileFour

app/src/UI/WindowManager.cpp:307–315  ·  view source on GitHub ↗

* @brief Four windows in a 2x2 grid. */

Source from the content-addressed store, hash-verified

305 * @brief Four windows in a 2x2 grid.
306 */
307static void tileFour(const QList<QQuickItem*>& wins, const TileEnv& env)
308{
309 const int w = (env.availW - env.spacing) / 2;
310 const int h = (env.availH - env.spacing) / 2;
311 placeWindow(wins[0], env.margin, env.margin, w, h);
312 placeWindow(wins[1], env.margin + w + env.spacing, env.margin, w, h);
313 placeWindow(wins[2], env.margin, env.margin + h + env.spacing, w, h);
314 placeWindow(wins[3], env.margin + w + env.spacing, env.margin + h + env.spacing, w, h);
315}
316
317/**
318 * @brief Five windows in an asymmetric 2+3 arrangement.

Callers 1

dispatchTileFunction · 0.85

Calls 1

placeWindowFunction · 0.85

Tested by

no test coverage detected