Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylandshell.cpp
Go to the documentation of this file.
1
// Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
#
include
"qwaylandshell.h"
5
#
include
"qwaylandshell_p.h"
6
7
QT_BEGIN_NAMESPACE
8
9
QWaylandShellPrivate::QWaylandShellPrivate()
10
{
11
}
12
13
QWaylandShell::QWaylandShell()
14
{
15
}
16
17
QWaylandShell::QWaylandShell(QWaylandObject *waylandObject)
18
: QWaylandCompositorExtension(waylandObject, *
new
QWaylandShellPrivate())
19
{
20
}
21
22
/*!
23
* \class QWaylandShell
24
* \inmodule QtWaylandCompositor
25
* \abstract
26
* \brief Abstract class for implementing a wayland shell.
27
*/
28
29
/*!
30
* \enum QWaylandShell::FocusPolicy
31
*
32
* This enum type is used to specify the focus policy for shell surfaces.
33
*
34
* \value AutomaticFocus Shell surfaces will automatically get keyboard focus when they are created.
35
* \value ManualFocus The compositor will decide whether shell surfaces should get keyboard focus or not.
36
*/
37
38
/*!
39
* \qmltype Shell
40
* \nativetype QWaylandShell
41
* \inqmlmodule QtWayland.Compositor
42
* \brief Abrtract type for implementing a wayland shell.
43
*/
44
45
/*!
46
* \qmlproperty enumeration Shell::focusPolicy
47
*
48
* This property holds the focus policy of the Shell.
49
*/
50
51
/*!
52
* \property QWaylandShell::focusPolicy
53
*
54
* This property holds the focus policy of the QWaylandShell.
55
*/
56
QWaylandShell::FocusPolicy QWaylandShell::focusPolicy()
const
57
{
58
Q_D(
const
QWaylandShell);
59
return
d->focusPolicy;
60
}
61
62
void
QWaylandShell::setFocusPolicy(QWaylandShell::FocusPolicy focusPolicy)
63
{
64
Q_D(QWaylandShell);
65
66
if
(d->focusPolicy == focusPolicy)
67
return
;
68
69
d->focusPolicy = focusPolicy;
70
emit focusPolicyChanged();
71
}
72
73
QWaylandShell::QWaylandShell(QWaylandShellPrivate &dd)
74
: QWaylandCompositorExtension(dd)
75
{
76
}
77
78
QWaylandShell::QWaylandShell(QWaylandObject *container, QWaylandShellPrivate &dd)
79
: QWaylandCompositorExtension(container, dd)
80
{
81
}
82
83
QT_END_NAMESPACE
84
85
#
include
"moc_qwaylandshell.cpp"
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtwayland
src
compositor
extensions
qwaylandshell.cpp
Generated on
for Qt by
1.14.0