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
qwaylandxdgdialogv1.cpp
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
6
7#include <QWaylandXdgToplevel>
8#include <wayland-server.h>
9
11
16
24
25void QWaylandXdgDialogV1Global::xdg_wm_dialog_v1_get_xdg_dialog(Resource *resource, uint32_t id, wl_resource *toplevelResource)
26{
27 auto *toplevel = QWaylandXdgToplevel::fromResource(toplevelResource);
28 (void)new QWaylandXdgDialogV1(toplevel, resource->client(), id);
29}
30
32 : QtWaylandServer::xdg_dialog_v1(client, id, 1), m_topLevel(toplevel)
33{
34}
35
37{
38 Q_UNUSED(resource);
39 if (m_topLevel)
40 m_topLevel->setModal(true);
41
42}
43
45{
46 Q_UNUSED(resource);
47 if (m_topLevel)
48 m_topLevel->setModal(false);
49}
50
52{
53 Q_UNUSED(resource);
54 delete this;
55}
56
58{
59 if (m_topLevel)
60 m_topLevel->setModal(false);
61 wl_resource_destroy(resource->handle);
62}
63
virtual void initialize()
Initializes the QWaylandCompositorExtension.
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
void xdg_wm_dialog_v1_get_xdg_dialog(Resource *resource, uint32_t id, wl_resource *toplevelResource) override
QWaylandXdgDialogV1Global(QWaylandCompositor *parent=nullptr)
void initialize() override
Initializes the QWaylandCompositorExtension.
void xdg_dialog_v1_unset_modal(Resource *resource) override
QWaylandXdgDialogV1(QWaylandXdgToplevel *toplevel, wl_client *client, int id)
void xdg_dialog_v1_destroy_resource(Resource *resource) override
void xdg_dialog_v1_destroy(Resource *resource) override
void xdg_dialog_v1_set_modal(Resource *resource) override
\qmltype XdgToplevel \instantiates QWaylandXdgToplevel \inqmlmodule QtWayland.Compositor....
static QWaylandXdgToplevel * fromResource(::wl_resource *resource)
Returns the QWaylandXdgToplevel corresponding to the resource.
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
static QOpenGLCompositor * compositor
GLenum GLuint id
[7]
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
#define Q_UNUSED(x)