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
5#include <QtCore/qglobalstatic.h>
6
8
10{
12 Q_GLOBAL_STATIC(AppContextType, s_appContext)
13
14 void init(QMap<Type, QString> appcontext)
15 {
16 *s_appContext = std::move(appcontext);
17 }
18
20 {
21 return s_appContext->value(prop);
22 }
23
25 {
26 return *s_appContext;
27 }
28}
29
30QT_END_NAMESPACE
QMap< Type, QString > getAllProperties()
void init(QMap< Type, QString > appcontext)
QString getProperty(Type prop)
Combined button and popup list for selecting options.