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
qqmlplatform.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 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
// Qt-Security score:significant
4
5
#
include
"qqmlplatform_p.h"
6
#
include
"qqmlglobal_p.h"
7
8
QT_BEGIN_NAMESPACE
9
10
/*
11
This object and its properties are documented as part of the Qt object,
12
in qqmlengine.cpp
13
*/
14
15
QQmlPlatform::QQmlPlatform(QObject *parent)
16
: QObject(parent)
17
{
18
}
19
20
QQmlPlatform::~QQmlPlatform()
21
{
22
}
23
24
QString QQmlPlatform::os()
25
{
26
// ### Qt7: Consider implementing in terms of QSysInfo
27
28
#
if
defined
(
Q_OS_ANDROID
)
29
return
QStringLiteral(
"android"
);
30
#
elif
defined
(
Q_OS_IOS
)
31
return
QStringLiteral(
"ios"
);
32
#
elif
defined
(
Q_OS_TVOS
)
33
return
QStringLiteral(
"tvos"
);
34
#
elif
defined
(
Q_OS_VISIONOS
)
35
return
QStringLiteral(
"visionos"
);
36
#
elif
defined
(
Q_OS_MACOS
)
37
// ### Qt7: Replace with "macos"
38
return
QStringLiteral(
"osx"
);
39
#
elif
defined
(
Q_OS_WIN
)
40
return
QStringLiteral(
"windows"
);
41
#
elif
defined
(
Q_OS_LINUX
)
42
return
QStringLiteral(
"linux"
);
43
#
elif
defined
(
Q_OS_QNX
)
44
return
QStringLiteral(
"qnx"
);
45
#
elif
defined
(
Q_OS_WASM
)
46
return
QStringLiteral(
"wasm"
);
47
#
elif
defined
(
Q_OS_UNIX
)
48
return
QStringLiteral(
"unix"
);
49
#
else
50
return
QStringLiteral(
"unknown"
);
51
#
endif
52
}
53
54
QString QQmlPlatform::pluginName()
const
55
{
56
return
QQml_guiProvider()->pluginName();
57
}
58
59
QT_END_NAMESPACE
60
61
#
include
"moc_qqmlplatform_p.cpp"
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtdeclarative
src
qml
qml
qqmlplatform.cpp
Generated on
for Qt by
1.16.1