summaryrefslogtreecommitdiffstats
path: root/examples/wayland/qwindow-compositor/compositor.cpp
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-07-13 16:55:34 +0200
committerJohan Helsing <johan.helsing@qt.io>2016-08-03 13:07:52 +0000
commita147fedc76c84d2a6b50820a685288efb43f80db (patch)
tree5d4af8751c7869bc943a069667af9517ed587cb2 /examples/wayland/qwindow-compositor/compositor.cpp
parenta4d68e7d78a28225c23931431f0db6ebf75f5e41 (diff)
Rename createSurface and similar signals
* createSurface -> surfaceRequested * createXdgSurface -> xdgSurfaceRequested * createXdgPopup -> xdgPopupRequested * createShellSurface -> wlShellSurfaceRequested * shellSurfaceCreated -> wlShellSurfaceCreated Change-Id: I715a927242130d7504955002a6a64a2bac516d46 Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'examples/wayland/qwindow-compositor/compositor.cpp')
-rw-r--r--examples/wayland/qwindow-compositor/compositor.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/wayland/qwindow-compositor/compositor.cpp b/examples/wayland/qwindow-compositor/compositor.cpp
index 4999a5ed0..cff3df082 100644
--- a/examples/wayland/qwindow-compositor/compositor.cpp
+++ b/examples/wayland/qwindow-compositor/compositor.cpp
@@ -147,9 +147,9 @@ Compositor::Compositor(QWindow *window)
, m_wlShell(new QWaylandWlShell(this))
, m_xdgShell(new QWaylandXdgShell(this))
{
- connect(m_wlShell, &QWaylandWlShell::shellSurfaceCreated, this, &Compositor::onWlShellSurfaceCreated);
+ connect(m_wlShell, &QWaylandWlShell::wlShellSurfaceCreated, this, &Compositor::onWlShellSurfaceCreated);
connect(m_xdgShell, &QWaylandXdgShell::xdgSurfaceCreated, this, &Compositor::onXdgSurfaceCreated);
- connect(m_xdgShell, &QWaylandXdgShell::createXdgPopup, this, &Compositor::onCreateXdgPopup);
+ connect(m_xdgShell, &QWaylandXdgShell::xdgPopupRequested, this, &Compositor::onXdgPopupRequested);
}
Compositor::~Compositor()
@@ -252,9 +252,9 @@ void Compositor::onXdgSurfaceCreated(QWaylandXdgSurface *xdgSurface)
connect(xdgSurface, &QWaylandXdgSurface::unsetFullscreen, view, &View::onXdgUnsetFullscreen);
}
-void Compositor::onCreateXdgPopup(QWaylandSurface *surface, QWaylandSurface *parent,
- QWaylandInputDevice *inputDevice, const QPoint &position,
- const QWaylandResource &resource)
+void Compositor::onXdgPopupRequested(QWaylandSurface *surface, QWaylandSurface *parent,
+ QWaylandInputDevice *inputDevice, const QPoint &position,
+ const QWaylandResource &resource)
{
Q_UNUSED(inputDevice);