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
qohosruntimedevicetypeandmode.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 <qohosruntimedevicetypeandmode.h>
5
6#include <QtCore/private/qohoslogger_p.h>
7#include <qohosdeviceinfo_p.h>
8#include <qohosplatformintegration.h>
9#include <qohossettings.h>
10
12
14{
17 } else if (isHandheldDeviceType()) {
21 } else {
22 qCCritical(QtForOhos)
23 << Q_FUNC_INFO << "Failed to determine valid runtimeDeviceTypeAndMode as this is unknown device type. Assuming 2in1.";
25 }
26}
27
32
33QT_END_NAMESPACE
static QOhosPlatformIntegration * instance()
bool isWindowPcModeEnabled() const
Combined button and popup list for selecting options.
bool isHandheldDeviceType()
QOhosRuntimeDeviceTypeAndMode queryQOhosRuntimeDeviceAndMode()