Qt 6.x
The Qt SDK
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
4#ifndef QIOSGLOBAL_H
5#define QIOSGLOBAL_H
6
7#import <UIKit/UIKit.h>
8#include <QtCore/QtCore>
9
11
13
15Q_DECLARE_LOGGING_CATEGORY(lcQpaInputMethods);
17
18#if !defined(QT_NO_DEBUG)
19#define qImDebug \
20 for (bool qt_category_enabled = lcQpaInputMethods().isDebugEnabled(); qt_category_enabled; qt_category_enabled = false) \
21 QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC, lcQpaInputMethods().categoryName()).debug
22#else
23#define qImDebug QT_NO_QDEBUG_MACRO
24#endif
25
26class QPlatformScreen;
27
28bool isQtApplication();
29
30#ifndef Q_OS_TVOS
31Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation);
32UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation);
33#endif
34
35int infoPlistValue(NSString* key, int defaultValue);
36
38
39@interface UIResponder (QtFirstResponder)
41@end
42
44
45class FirstResponderCandidate : public QScopedValueRollback<UIResponder *>
46{
47public:
48 FirstResponderCandidate(UIResponder *);
49 static UIResponder *currentCandidate() { return s_firstResponderCandidate; }
50
51private:
52 static UIResponder *s_firstResponderCandidate;
53};
54
56
57#endif // QIOSGLOBAL_H
static UIResponder * currentCandidate()
Definition qiosglobal.h:49
The QPlatformScreen class provides an abstraction for visual displays.
Combined button and popup list for selecting options.
ScreenOrientation
Definition qnamespace.h:270
int infoPlistValue(NSString *key, int defaultValue)
Definition qiosglobal.mm:81
Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation)
Definition qiosglobal.mm:33
bool isQtApplication()
Definition qiosglobal.mm:17
UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation)
Definition qiosglobal.mm:58
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLuint64 key
GLenum GLuint id
[7]