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 <qohossettings.h>
9
11
13{
16 } else if (isHandheldDeviceType()) {
20 } else {
21 qCCritical(QtForOhos)
22 << Q_FUNC_INFO << "Failed to determine valid runtimeDeviceTypeAndMode as this is unknown device type. Assuming 2in1.";
24 }
25}
26
31
32QT_END_NAMESPACE
bool isWindowPcModeEnabled()
Combined button and popup list for selecting options.
bool isHandheldDeviceType()
QOhosRuntimeDeviceTypeAndMode queryQOhosRuntimeDeviceAndMode()