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
qohospasteboard.cpp
Go to the documentation of this file.
1
// Copyright (C) 2026 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
4
#
include
"qohospasteboard_p.h"
5
#
include
<
QtGui
/
qguiapplication
.
h
>
6
7
QT_BEGIN_NAMESPACE
8
9
namespace
QtOhosAppKit
{
10
11
/*!
12
\namespace QtOhosAppKit::Pasteboard
13
\inmodule QtOhosAppKit
14
\since 5.12.12
15
\brief The Pasteboard class is to manage native pasteboard.
16
*/
17
namespace
Pasteboard {
18
19
/*!
20
\fn void QtOhosAppKit::Pasteboard::setInAppOnlyPasteboardShareOption(bool shareInAppOnly)
21
22
According to \a shareInAppOnly sets if pasteboard data content can be used only in the same
23
application or across applications of a device.
24
*/
25
void
setInAppOnlyPasteboardShareOption
(
bool
shareInAppOnly)
26
{
27
constexpr
const
char
*platformFunctionName =
"setInAppOnlyPasteboardShareOption"
;
28
29
auto
*fn =
reinterpret_cast
<
void
(*)(
bool
)>(qApp->platformFunction(platformFunctionName));
30
if
(fn ==
nullptr
)
31
qFatal(
"failed to load function: %s"
, platformFunctionName);
32
(*fn)(shareInAppOnly);
33
}
34
35
}
36
37
}
38
39
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtOhosAppKit::Pasteboard::setInAppOnlyPasteboardShareOption
void setInAppOnlyPasteboardShareOption(bool shareInAppOnly)
According to shareInAppOnly sets if pasteboard data content can be used only in the same application ...
Definition
qohospasteboard.cpp:25
QtOhosAppKit
Definition
qohosabilitycontext.cpp:33
qtbase
src
plugins
platforms
ohos
ohosappkit
qohospasteboard.cpp
Generated on
for Qt by
1.16.1