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
qohossettings.cpp File Reference

(b62489632fc6acfde70dbf3a8cbf1a6cb0ba494e)

#include "qohossettings.h"
#include <QtCore/private/qcore_ohos_p.h>
#include <QtCore/private/qohoscommon_p.h>
#include <cmath>
#include <cstring>
#include <functional>
#include <optional>
#include <qohosdeviceinfo_p.h>
#include <qohosjsutils.h>
#include <qohosutils.h>
#include <string>
Include dependency graph for qohossettings.cpp:

Go to the source code of this file.

Namespaces

namespace  QT_BEGIN_NAMESPACE
 Combined button and popup list for selecting options.

Functions

std::optional< std::string > QT_BEGIN_NAMESPACE::tryGetDataItemValue (const std::string &name, const std::string &domainName)
template<typename T>
std::optional< T > QT_BEGIN_NAMESPACE::tryGetDataItemTypedValue (const std::string &name, const std::string &domainName)
template<>
std::optional< double > QT_BEGIN_NAMESPACE::tryGetDataItemTypedValue (const std::string &name, const std::string &domainName)
std::string QT_BEGIN_NAMESPACE::getOhosSettingsUserPropertyDomainName ()
std::string QT_BEGIN_NAMESPACE::settingsUserPropertyDomainName (QOhosJsState &jsState)
std::optional< QNapi::Object > QT_BEGIN_NAMESPACE::settingsContext (QOhosJsState &jsState)
std::string QT_BEGIN_NAMESPACE::readSettingValue (QOhosJsState &jsState, const QNapi::Object &context, const std::string &name)
std::shared_ptr< void > QT_BEGIN_NAMESPACE::registerSettingsKeyObserver (QOhosJsState &jsState, QNapi::Object context, const std::string &name, std::function< void(QOhosJsState &)> onChanged)
bool QT_BEGIN_NAMESPACE::readWindowPcModeEnabled (QOhosJsState &jsState)
QOhosSupplier< bool > QT_BEGIN_NAMESPACE::makeWindowPcModeEnabledSupplier ()
QOhosSupplier< bool > QT_BEGIN_NAMESPACE::makeUncachedWindowPcModeEnabledSupplier ()
template<>
std::optional< double > QT_BEGIN_NAMESPACE::tryGetDataItemTypedValue (const std::string &name, const std::string &domainName)

Variables

constexpr const char * QT_BEGIN_NAMESPACE::fontSizeScalePropertyName = "font_scale"
constexpr const char * QT_BEGIN_NAMESPACE::windowPcModeSwitchStatusPropertyName = "window_pcmode_switch_status"