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
qohosappcontext.cpp
Go to the documentation of this file.
1
// Copyright (C) 2025 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
"qohosappcontext_p.h"
5
#
include
<
QtCore
/
qglobalstatic
.
h
>
6
7
QT_BEGIN_NAMESPACE
8
9
namespace
QOhosAppContext
10
{
11
using
AppContextType
=
QMap
<
Type
,
QString
>;
12
Q_GLOBAL_STATIC(AppContextType, s_appContext)
13
14
void
init
(QMap<Type, QString> appcontext)
15
{
16
*s_appContext = std::move(appcontext);
17
}
18
19
QString
getProperty
(
Type
prop)
20
{
21
return
s_appContext->value(prop);
22
}
23
24
QMap
<
Type
,
QString
>
getAllProperties
()
25
{
26
return
*s_appContext;
27
}
28
}
29
30
QT_END_NAMESPACE
QOhosAppContext
Definition
qohosappcontext.cpp:10
QOhosAppContext::getAllProperties
QMap< Type, QString > getAllProperties()
Definition
qohosappcontext.cpp:24
QOhosAppContext::Type
Type
Definition
qohosappcontext_p.h:23
QOhosAppContext::init
void init(QMap< Type, QString > appcontext)
Definition
qohosappcontext.cpp:14
QOhosAppContext::getProperty
QString getProperty(Type prop)
Definition
qohosappcontext.cpp:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
corelib
platform
ohos
qohosappcontext.cpp
Generated on
for Qt by
1.16.1