iOS: Clean up QPlatformInputContext subclass header

Implements isValid(), which should be returning true for subclasses,
and re-orders and adds Q_DECL_OVERRIDE where appropriate.

Change-Id: I03519bf674b6f7b7ccc07a7154c9a1fb9a8105f2
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
bb10
Tor Arne Vestbø 2014-11-19 15:57:32 +01:00
parent c238d34137
commit fe13d53c24
1 changed files with 12 additions and 10 deletions

View File

@ -63,25 +63,27 @@ public:
QIOSInputContext();
~QIOSInputContext();
QRectF keyboardRect() const;
bool isValid() const Q_DECL_OVERRIDE { return true; }
void showInputPanel();
void hideInputPanel();
void showInputPanel() Q_DECL_OVERRIDE;
void hideInputPanel() Q_DECL_OVERRIDE;
bool isInputPanelVisible() const Q_DECL_OVERRIDE;
QRectF keyboardRect() const Q_DECL_OVERRIDE;
void update(Qt::InputMethodQueries) Q_DECL_OVERRIDE;
void reset() Q_DECL_OVERRIDE;
void commit() Q_DECL_OVERRIDE;
void clearCurrentFocusObject();
bool isInputPanelVisible() const;
void setFocusObject(QObject *object);
void setFocusObject(QObject *object) Q_DECL_OVERRIDE;
void focusWindowChanged(QWindow *focusWindow);
void cursorRectangleChanged();
void scrollToCursor();
void scroll(int y);
void update(Qt::InputMethodQueries);
void reset();
void commit();
const ImeState &imeState() { return m_imeState; };
bool inputMethodAccepted() const;