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.h File Reference

(dc8a6de42c8adb89275628f0adb067e9664a795d)

#include <QtCore/qglobal.h>
#include <type_traits>
Include dependency graph for qohosruntimedevicetypeandmode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  QOhosRuntimeDeviceTypeAndMode { _2in1 = 1 << 0 , HandheldDeviceFullScreen = 1 << 1 , HandheldDeviceWindowPcMode = 1 << 2 }

Functions

QOhosRuntimeDeviceTypeAndMode queryQOhosRuntimeDeviceAndMode ()
bool isHandheldDeviceType ()
constexpr QOhosRuntimeDeviceTypeAndMode operator| (QOhosRuntimeDeviceTypeAndMode lhs, QOhosRuntimeDeviceTypeAndMode rhs)

Enumeration Type Documentation

◆ QOhosRuntimeDeviceTypeAndMode

enum class QOhosRuntimeDeviceTypeAndMode
strong
Enumerator
_2in1 
HandheldDeviceFullScreen 
HandheldDeviceWindowPcMode 

Definition at line 12 of file qohosruntimedevicetypeandmode.h.

Function Documentation

◆ isHandheldDeviceType()

bool isHandheldDeviceType ( )

Definition at line 27 of file qohosruntimedevicetypeandmode.cpp.

References QOhosDeviceInfo::isPhone(), and QOhosDeviceInfo::isTablet().

Referenced by QOhosView::QOhosView(), and queryQOhosRuntimeDeviceAndMode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator|()

◆ queryQOhosRuntimeDeviceAndMode()

QT_BEGIN_NAMESPACE QOhosRuntimeDeviceTypeAndMode queryQOhosRuntimeDeviceAndMode ( )

Definition at line 12 of file qohosruntimedevicetypeandmode.cpp.

References _2in1, HandheldDeviceFullScreen, HandheldDeviceWindowPcMode, QOhosDeviceInfo::is2in1(), isHandheldDeviceType(), and QOhosSettings::isWindowPcModeEnabled().

Here is the call graph for this function: