Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwaylanddestroylistener.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 Jolla Ltd, author: <giulio.camuffo@jollamobile.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
6
8
15
21{
23 wl_resource_add_destroy_listener(resource, &d->listener.listener);
24}
25
27{
29 wl_list_remove(&d->listener.listener.link);
30 wl_list_init(&d->listener.listener.link);
31}
32
33void QWaylandDestroyListenerPrivate::handler(wl_listener *listener, void *data)
34{
35 QWaylandDestroyListenerPrivate *that = reinterpret_cast<Listener *>(listener)->parent;
36 emit that->q_func()->fired(data);
37}
38
40
41#include "moc_qwaylanddestroylistener.cpp"
QObject * parent
Definition qobject.h:73
\inmodule QtCore
Definition qobject.h:103
static void handler(wl_listener *listener, void *data)
QWaylandDestroyListener(QObject *parent=nullptr)
void listenForDestruction(struct wl_resource *resource)
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define emit