Merge lp:~mterry/lightdm/enums into lp:lightdm
Proposed by
Michael Terry
Status: | Merged |
---|---|
Approved by: | Robert Ancell |
Approved revision: | 1630 |
Merged at revision: | 1635 |
Proposed branch: | lp:~mterry/lightdm/enums |
Merge into: | lp:lightdm |
Diff against target: |
40 lines (+8/-0) 3 files modified
liblightdm-qt/QLightDM/greeter.h (+2/-0) liblightdm-qt/QLightDM/sessionsmodel.h (+3/-0) liblightdm-qt/QLightDM/usersmodel.h (+3/-0) |
To merge this branch: | bzr merge lp:~mterry/lightdm/enums |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Edmundson | Approve | ||
Robert Ancell | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Review via email: mp+156695@code.launchpad.net |
Commit message
Register enums with QObject meta type system
Description of the change
Register enums with the QObject meta type system. This way they can be accessed from Qml.
To post a comment you must log in.
+ Q_ENUMS(PromptType MessageType);
makes absolute sense.
I don't understand why you would do it for the model roles, Models are accessed through roleNames anyway.