Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::anonymous_namespace{widgetsintegration.cpp} Namespace Reference

Classes

class  WidgetsIntegration
 GuiIntegration for QWidget-based windows. More...

Functions

QWidget * widgetForWindow (const QWindow *window)
 The top-level widget shown in window, or nullptr.
QJsonObject sizeJson (const QSize &s)
 {"width": w, "height": h}.
QJsonObject rectJson (const QRect &r)
 {"x", "y", "width", "height"}.
QString policyName (QSizePolicy::Policy p)
 A QSizePolicy::Policy by name, e.g. "Expanding".
QJsonObject layoutJson (const QLayout *layout)
 The layout facts of layout: class, margins, spacing, item count.
QJsonArray siblingsAbove (const QWidget *w)
 Visible siblings stacked above w that overlap it (they get its clicks there).
QJsonArray sizeNotes (const QWidget *w)
 Notes that explain a widget's size: limits it is held at, a size below its minimum hint.