diff options
author | Pekka Vuorela <pekka.ta.vuorela@nokia.com> | 2012-01-05 13:29:23 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-07 17:25:59 +0100 |
commit | a98741516c02bbc1f479300d08a39fb5f93e1d64 (patch) | |
tree | 7dc52f76f910628f36d4955b4fb321675a5842b9 /src/gui/kernel/qinputpanel.h | |
parent | a2fd2f90ec6f17715cff5b7e954c31b5356db649 (diff) |
Move keyboard locale and input direction to QInputPanel
Deprecated QGuiApplication::keyboardInputLocale() and
keyboardInputDirection(), introduced QInputPanel::locale()
and inputDirection().
Change-Id: Ic48c77f10821a949751c73c73f22bd78e2192b9c
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/gui/kernel/qinputpanel.h')
-rw-r--r-- | src/gui/kernel/qinputpanel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/kernel/qinputpanel.h b/src/gui/kernel/qinputpanel.h index 66f7f3be5a..33e49f28f4 100644 --- a/src/gui/kernel/qinputpanel.h +++ b/src/gui/kernel/qinputpanel.h @@ -64,6 +64,8 @@ class Q_GUI_EXPORT QInputPanel : public QObject Q_PROPERTY(QRectF keyboardRectangle READ keyboardRectangle NOTIFY keyboardRectangleChanged) Q_PROPERTY(bool visible READ visible NOTIFY visibleChanged) Q_PROPERTY(bool animating READ isAnimating NOTIFY animatingChanged) + Q_PROPERTY(QLocale locale READ locale NOTIFY localeChanged) + Q_PROPERTY(Qt::LayoutDirection inputDirection READ inputDirection NOTIFY inputDirectionChanged) Q_ENUMS(Action) public: @@ -92,6 +94,9 @@ public: bool isAnimating() const; + QLocale locale() const; + Qt::LayoutDirection inputDirection() const; + public Q_SLOTS: void show(); void hide(); @@ -108,6 +113,8 @@ Q_SIGNALS: void keyboardRectangleChanged(); void visibleChanged(); void animatingChanged(); + void localeChanged(); + void inputDirectionChanged(Qt::LayoutDirection newDirection); private: friend class QGuiApplication; |