Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qiosglobal.h
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 reason:default
4
5
#
ifndef
QIOSGLOBAL_H
6
#
define
QIOSGLOBAL_H
7
8
#
import
<
UIKit
/
UIKit
.
h
>
9
#
include
<
QtCore
/
QtCore
>
10
11
@
class
QIOSViewController;
12
13
QT_BEGIN_NAMESPACE
14
15
Q_DECLARE_LOGGING_CATEGORY
(
lcQpaApplication
);
16
Q_DECLARE_LOGGING_CATEGORY
(
lcQpaInputMethods
);
17
Q_DECLARE_LOGGING_CATEGORY
(
lcQpaWindow
);
18
Q_DECLARE_LOGGING_CATEGORY
(
lcQpaWindowScene
);
19
20
#
if
!
defined
(
QT_NO_DEBUG
)
21
#
define
qImDebug
22
for
(
bool
qt_category_enabled
=
lcQpaInputMethods
(
)
.
isDebugEnabled
(
)
;
qt_category_enabled
;
qt_category_enabled
=
false
)
23
QMessageLogger
(
QT_MESSAGELOG_FILE
,
QT_MESSAGELOG_LINE
,
QT_MESSAGELOG_FUNC
,
lcQpaInputMethods
(
)
.
categoryName
(
)
)
.
debug
24
#
else
25
#
define
qImDebug
QT_NO_QDEBUG_MACRO
26
#
endif
27
28
class
QPlatformScreen;
29
30
bool
isQtApplication
();
31
bool
isRunningOnVisionOS
();
32
33
#
ifndef
Q_OS_TVOS
34
Qt
::
ScreenOrientation
toQtScreenOrientation
(UIDeviceOrientation uiDeviceOrientation);
35
UIDeviceOrientation
fromQtScreenOrientation
(Qt::ScreenOrientation qtOrientation);
36
#
endif
37
38
int
infoPlistValue
(NSString* key,
int
defaultValue);
39
40
class
QWindow;
41
class
QScreen;
42
UIWindow
*
presentationWindow
(QWindow *);
43
UIView
*
rootViewForScreen
(
const
QPlatformScreen *);
44
45
QT_END_NAMESPACE
46
47
@interface UIResponder (QtFirstResponder)
48
+ (id)qt_currentFirstResponder;
49
@end
50
51
QT_BEGIN_NAMESPACE
52
53
class
FirstResponderCandidate :
public
QScopedValueRollback<UIResponder *>
54
{
55
public
:
56
FirstResponderCandidate(UIResponder *);
57
static
UIResponder *currentCandidate() {
return
s_firstResponderCandidate; }
58
59
private
:
60
static
UIResponder *s_firstResponderCandidate;
61
};
62
63
QT_END_NAMESPACE
64
65
#
endif
// QIOSGLOBAL_H
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
Q_DECLARE_LOGGING_CATEGORY
Q_DECLARE_LOGGING_CATEGORY(lcQpaWindowScene)
rootViewForScreen
UIView * rootViewForScreen(const QPlatformScreen *)
Definition
qiosglobal.mm:112
presentationWindow
UIWindow * presentationWindow(QWindow *)
Definition
qiosglobal.mm:97
infoPlistValue
int infoPlistValue(NSString *key, int defaultValue)
Definition
qiosglobal.mm:90
toQtScreenOrientation
Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation)
Definition
qiosglobal.mm:42
isQtApplication
bool isQtApplication()
Definition
qiosglobal.mm:21
isRunningOnVisionOS
bool isRunningOnVisionOS()
Definition
qiosglobal.mm:32
Q_DECLARE_LOGGING_CATEGORY
Q_DECLARE_LOGGING_CATEGORY(lcQpaInputMethods)
fromQtScreenOrientation
UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation)
Definition
qiosglobal.mm:67
Q_DECLARE_LOGGING_CATEGORY
Q_DECLARE_LOGGING_CATEGORY(lcQpaWindow)
qtbase
src
plugins
platforms
ios
qiosglobal.h
Generated on
for Qt by
1.18.0