MCPcopy Create free account
hub / github.com/KDE/kwin / WindowModel

Method WindowModel

src/scripting/windowmodel.cpp:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16
17WindowModel::WindowModel(QObject *parent)
18 : QAbstractListModel(parent)
19{
20 connect(workspace(), &Workspace::windowAdded, this, &WindowModel::handleWindowAdded);
21 connect(workspace(), &Workspace::windowRemoved, this, &WindowModel::handleWindowRemoved);
22
23 m_windows = workspace()->windows();
24 for (Window *window : std::as_const(m_windows)) {
25 setupWindowConnections(window);
26 }
27}
28
29void WindowModel::markRoleChanged(Window *window, int role)
30{

Callers

nothing calls this directly

Calls 2

workspaceFunction · 0.85
windowsMethod · 0.45

Tested by

no test coverage detected