[tests] Extend paneltest on how to use PlasmaWindow
Debugs out changes to window title.
This commit is contained in:
parent
83ce426353
commit
d6f0ff55bd
1 changed files with 9 additions and 0 deletions
|
@ -163,6 +163,15 @@ void PanelTest::setupRegistry(Registry *registry)
|
|||
qDebug() << "Showing desktop changed, new state: " << set;
|
||||
}
|
||||
);
|
||||
connect(m_windowManagement, &PlasmaWindowManagement::windowCreated, this,
|
||||
[this] (PlasmaWindow *w) {
|
||||
connect(w, &PlasmaWindow::titleChanged, this,
|
||||
[w] {
|
||||
qDebug() << "Window title changed to: " << w->title();
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
connect(registry, &Registry::interfacesAnnounced, this,
|
||||
|
|
Loading…
Reference in a new issue