summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanagerinterface.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2013-10-16 15:23:30 +0200
committerMarco Bubke <marco.bubke@digia.com>2013-10-16 16:13:00 +0200
commita6d6db3397b82dc9fca5517c3ad2595f00c89f90 (patch)
tree3b96ad3ff755bd00cd4312e922fb9f22aeab0f5f /src/plugins/cpptools/cppmodelmanagerinterface.cpp
parent7f09973ca219e4db9a9f320cb31f3294e6a2e80e (diff)
downloadqt-creator-a6d6db3397b82dc9fca5517c3ad2595f00c89f90.tar.gz
QmlDesigner: Support for enums in alias properties
Enums in combination with alias properties were not supported. The QML Engine does not distinguish between bindings and enums in this case. We want to distinguish between bindings/expressions and literal enums. This is not possible with the current code model, so we use a list of hardcoded enum keys for Qt Quick. There a several issues we want to properly fix in the future. * Make the model aware of enums. Currently enums are strings (the key) in the model. This has historical reasons. Instead we should use a custom type registered to QVariant that handles the scope, key and integer value. * The code model should be fully aware of enums even in the alias case. Do not integrate this patch to 3.0 or master. Task-number: QTCREATORBUG-10114 Change-Id: I780a201202f0949b1e2eb2f2525ddb031e1cd18b Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanagerinterface.cpp')
0 files changed, 0 insertions, 0 deletions