iOS: make EAGLView private in QIOSWindow
Not the biggest gain, but since all the members of EAGLView are declared private, we might as well move the whole interface into the source file. We can then make the members public without caring about interface readability. We will make use of this in a following patch. Change-Id: I144fb5748573ca6faf257d72597907b5c17b1e05 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>bb10
parent
2dea9fdc3a
commit
bbb8db9bdb
|
|
@ -49,31 +49,6 @@
|
|||
class QIOSContext;
|
||||
class QIOSWindow;
|
||||
|
||||
@interface EAGLView : UIView <UIKeyInput>
|
||||
{
|
||||
UITextAutocapitalizationType autocapitalizationType;
|
||||
UITextAutocorrectionType autocorrectionType;
|
||||
BOOL enablesReturnKeyAutomatically;
|
||||
UIKeyboardAppearance keyboardAppearance;
|
||||
UIKeyboardType keyboardType;
|
||||
UIReturnKeyType returnKeyType;
|
||||
BOOL secureTextEntry;
|
||||
QIOSWindow *m_qioswindow;
|
||||
}
|
||||
|
||||
- (id)initWithQIOSWindow:(QIOSWindow *)qioswindow;
|
||||
- (void)sendMouseEventForTouches:(NSSet *)touches withEvent:(UIEvent *)event fakeButtons:(Qt::MouseButtons)buttons;
|
||||
|
||||
@property(nonatomic) UITextAutocapitalizationType autocapitalizationType;
|
||||
@property(nonatomic) UITextAutocorrectionType autocorrectionType;
|
||||
@property(nonatomic) BOOL enablesReturnKeyAutomatically;
|
||||
@property(nonatomic) UIKeyboardAppearance keyboardAppearance;
|
||||
@property(nonatomic) UIKeyboardType keyboardType;
|
||||
@property(nonatomic) UIReturnKeyType returnKeyType;
|
||||
@property(nonatomic, getter=isSecureTextEntry) BOOL secureTextEntry;
|
||||
|
||||
@end
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QIOSWindow : public QPlatformWindow
|
||||
|
|
@ -92,10 +67,10 @@ public:
|
|||
GLuint colorRenderbuffer(const QIOSContext &context) const;
|
||||
qreal devicePixelRatio() const;
|
||||
|
||||
EAGLView *nativeView() const { return m_view; }
|
||||
UIView *nativeView() const { return m_view; }
|
||||
|
||||
private:
|
||||
EAGLView *m_view;
|
||||
UIView *m_view;
|
||||
QRect m_requestedGeometry;
|
||||
|
||||
mutable struct GLData {
|
||||
|
|
|
|||
|
|
@ -53,6 +53,29 @@
|
|||
|
||||
#include <QtDebug>
|
||||
|
||||
@interface EAGLView : UIView <UIKeyInput>
|
||||
{
|
||||
@public
|
||||
UITextAutocapitalizationType autocapitalizationType;
|
||||
UITextAutocorrectionType autocorrectionType;
|
||||
BOOL enablesReturnKeyAutomatically;
|
||||
UIKeyboardAppearance keyboardAppearance;
|
||||
UIKeyboardType keyboardType;
|
||||
UIReturnKeyType returnKeyType;
|
||||
BOOL secureTextEntry;
|
||||
QIOSWindow *m_qioswindow;
|
||||
}
|
||||
|
||||
@property(nonatomic) UITextAutocapitalizationType autocapitalizationType;
|
||||
@property(nonatomic) UITextAutocorrectionType autocorrectionType;
|
||||
@property(nonatomic) BOOL enablesReturnKeyAutomatically;
|
||||
@property(nonatomic) UIKeyboardAppearance keyboardAppearance;
|
||||
@property(nonatomic) UIKeyboardType keyboardType;
|
||||
@property(nonatomic) UIReturnKeyType returnKeyType;
|
||||
@property(nonatomic, getter=isSecureTextEntry) BOOL secureTextEntry;
|
||||
|
||||
@end
|
||||
|
||||
@implementation EAGLView
|
||||
|
||||
+ (Class)layerClass
|
||||
|
|
@ -186,7 +209,6 @@
|
|||
|
||||
@end
|
||||
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QIOSWindow::QIOSWindow(QWindow *window)
|
||||
|
|
|
|||
Loading…
Reference in New Issue