[tests] Extend paneltest on how to use PlasmaWindow

Debugs out changes to window title.
This commit is contained in:
Martin Gräßlin 2015-06-16 06:27:41 +02:00
parent 83ce426353
commit d6f0ff55bd

View file

@ -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,