aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/enterkeyactionattachedtype.h
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2014-05-07 12:38:03 +0300
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2014-05-07 13:49:04 +0300
commitf472f05f888436bb3c39362ae8ad718c21b4d838 (patch)
treee646765aa8c7e7db2a859dcbf7262e238b731a03 /src/virtualkeyboard/enterkeyactionattachedtype.h
parent9e4ef485964df47d450ff8024fce250cd718a3cc (diff)
Fix undefined qml type for EnterKeyAction.Id
The actual type is enum but it cannot be used because there is an ambiguity in registering the enum used by the attached property (egg chicken dilemma). This problem is limited to Qt versions below 5.3. In Qt 5.3 it works with enum type too. Change-Id: Ic237b67fa10b7326e99b89204a189755ba2b7e6f Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'src/virtualkeyboard/enterkeyactionattachedtype.h')
-rw-r--r--src/virtualkeyboard/enterkeyactionattachedtype.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/virtualkeyboard/enterkeyactionattachedtype.h b/src/virtualkeyboard/enterkeyactionattachedtype.h
index d04b240c..cf5b93b1 100644
--- a/src/virtualkeyboard/enterkeyactionattachedtype.h
+++ b/src/virtualkeyboard/enterkeyactionattachedtype.h
@@ -25,15 +25,15 @@
class EnterKeyActionAttachedType : public QObject
{
Q_OBJECT
- Q_PROPERTY(EnterKeyAction::Id actionId READ actionId WRITE setActionId NOTIFY actionIdChanged)
+ Q_PROPERTY(int actionId READ actionId WRITE setActionId NOTIFY actionIdChanged)
Q_PROPERTY(QString label READ label WRITE setLabel NOTIFY labelChanged)
Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
public:
explicit EnterKeyActionAttachedType(QObject *parent);
- EnterKeyAction::Id actionId() const;
- void setActionId(EnterKeyAction::Id actionId);
+ int actionId() const;
+ void setActionId(int actionId);
QString label() const;
void setLabel(const QString& label);
bool enabled() const;
@@ -45,7 +45,7 @@ signals:
void enabledChanged();
private:
- EnterKeyAction::Id m_actionId;
+ int m_actionId;
QString m_label;
bool m_enabled;
};