From d6f0ff55bdc88f35079b320a77fb14a586814572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 16 Jun 2015 06:27:41 +0200 Subject: [PATCH] [tests] Extend paneltest on how to use PlasmaWindow Debugs out changes to window title. --- src/wayland/tests/paneltest.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/wayland/tests/paneltest.cpp b/src/wayland/tests/paneltest.cpp index 9c9ef6ff9b..516d9c93b6 100644 --- a/src/wayland/tests/paneltest.cpp +++ b/src/wayland/tests/paneltest.cpp @@ -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,