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
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
14
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
28class QPlatformScreen;
29
30bool isQtApplication();
32
33#ifndef Q_OS_TVOS
34Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation);
35UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation);
36#endif
37
38int infoPlistValue(NSString* key, int defaultValue);
39
40class QWindow;
41class QScreen;
43UIView *rootViewForScreen(const QPlatformScreen *);
44
45QT_END_NAMESPACE
46
47@interface UIResponder (QtFirstResponder)
48+ (id)qt_currentFirstResponder;
49@end
50
51QT_BEGIN_NAMESPACE
52
53class FirstResponderCandidate : public QScopedValueRollback<UIResponder *>
54{
55public:
56 FirstResponderCandidate(UIResponder *);
57 static UIResponder *currentCandidate() { return s_firstResponderCandidate; }
58
59private:
60 static UIResponder *s_firstResponderCandidate;
61};
62
63QT_END_NAMESPACE
64
65#endif // QIOSGLOBAL_H
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcEventDispatcher)
Q_DECLARE_LOGGING_CATEGORY(lcQpaWindowScene)
UIView * rootViewForScreen(const QPlatformScreen *)
UIWindow * presentationWindow(QWindow *)
Definition qiosglobal.mm:97
int infoPlistValue(NSString *key, int defaultValue)
Definition qiosglobal.mm:90
Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation)
Definition qiosglobal.mm:42
bool isQtApplication()
Definition qiosglobal.mm:21
bool isRunningOnVisionOS()
Definition qiosglobal.mm:32
Q_DECLARE_LOGGING_CATEGORY(lcQpaInputMethods)
UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation)
Definition qiosglobal.mm:67
Q_DECLARE_LOGGING_CATEGORY(lcQpaWindow)