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
qwaylandsubsurface.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
include
"qwaylandsubsurface_p.h"
6
7
#
include
"qwaylandwindow_p.h"
8
9
#
include
<
QtCore
/
QDebug
>
10
11
QT_BEGIN_NAMESPACE
12
13
namespace
QtWaylandClient
{
14
15
QWaylandSubSurface
::
QWaylandSubSurface
(
QWaylandWindow
*
window
,
QWaylandWindow
*
parent
, ::
wl_subsurface
*
sub_surface
)
16
:
QtWayland
::
wl_subsurface
(
sub_surface
)
17
,
m_window
(
window
)
18
,
m_parent
(
parent
)
19
{
20
m_parent
->
mChildren
<<
this
;
21
setDeSync
();
22
}
23
24
QWaylandSubSurface
::~
QWaylandSubSurface
()
25
{
26
m_parent
->
mChildren
.
removeOne
(
this
);
27
destroy
();
28
}
29
30
void
QWaylandSubSurface
::
setSync
()
31
{
32
QMutexLocker
l
(&
m_syncLock
);
33
QWaylandSubSurface
::
set_sync
();
34
}
35
36
void
QWaylandSubSurface
::
setDeSync
()
37
{
38
QMutexLocker
l
(&
m_syncLock
);
39
QWaylandSubSurface
::
set_desync
();
40
}
41
42
void
QWaylandSubSurface
::
set_sync
()
43
{
44
m_synchronized
=
true
;
45
QtWayland
::
wl_subsurface
::
set_sync
();
46
}
47
48
void
QWaylandSubSurface
::
set_desync
()
49
{
50
m_synchronized
=
false
;
51
QtWayland
::
wl_subsurface
::
set_desync
();
52
}
53
54
}
55
56
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
QtWaylandClient
Definition
qwaylandclientextension.h:16
qtbase
src
plugins
platforms
wayland
qwaylandsubsurface.cpp
Generated on
for Qt by
1.16.1