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