Qt 6.x
The Qt SDK
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
10{
11 listener.parent = this;
12 listener.listener.notify = handler;
13 wl_list_init(&listener.listener.link);
14}
15
18{
19}
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:61
\inmodule QtCore
Definition qobject.h:90
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
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent