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
main.cpp
Go to the documentation of this file.
1// Copyright (C) 2023 Jan Grulich <jgrulich@redhat.com>
2// Copyright (C) 2023 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#include <QtWaylandClient/private/qwaylanddecorationplugin_p.h>
6
8
10
11using namespace Qt::StringLiterals;
12
13namespace QtWaylandClient {
14
22
24{
26 if (!key.compare("adwaita"_L1, Qt::CaseInsensitive) ||
27 !key.compare("gnome"_L1, Qt::CaseInsensitive))
28 return new QWaylandAdwaitaDecoration();
29 return nullptr;
30}
31
32}
33
35
36#include "main.moc"
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QWaylandAbstractDecoration * create(const QString &key, const QStringList &params) override
Definition main.cpp:23
Combined button and popup list for selecting options.
@ CaseInsensitive
GLuint64 key
void ** params
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
#define Q_UNUSED(x)
#define QWaylandDecorationFactoryInterface_iid
view create()