diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2014-04-30 15:41:02 +0300 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2014-05-06 15:43:14 +0300 |
commit | 945669c989c8204745b30c1ee6d3a10513ff2a70 (patch) | |
tree | 2a4d42518e27a9623fe4cdc91e833b6da9ec5c8f /src/virtualkeyboard/enterkeyaction.h | |
parent | 41e47a682ea558e3500155d683c389158c79b367 (diff) |
Add predefined ids for EnterKeyAction
A predefined action id replaces the label in the enter key with an icon.
Balanced all icons to use the same aspect ratio. Removed all custom
margins used for icon positioning and sizing.
Task-number: QTRD-2900
Change-Id: I159bcb4d53e8ceb8f51f4a8be24504e20262f37a
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Rainer Keller <rainer.keller@digia.com>
Diffstat (limited to 'src/virtualkeyboard/enterkeyaction.h')
-rw-r--r-- | src/virtualkeyboard/enterkeyaction.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/virtualkeyboard/enterkeyaction.h b/src/virtualkeyboard/enterkeyaction.h index aea64362..7f0c8619 100644 --- a/src/virtualkeyboard/enterkeyaction.h +++ b/src/virtualkeyboard/enterkeyaction.h @@ -26,10 +26,23 @@ class EnterKeyActionAttachedType; class EnterKeyAction : public QObject { Q_OBJECT + Q_ENUMS(Id) + +public: + enum Id { + None, + Go, + Search, + Send, + Next, + Done + }; + public: static EnterKeyActionAttachedType *qmlAttachedProperties(QObject *object); }; +Q_DECLARE_METATYPE(EnterKeyAction::Id) QML_DECLARE_TYPEINFO(EnterKeyAction, QML_HAS_ATTACHED_PROPERTIES) #endif |