Merge lp:~uriboni/unity-2d/support-removeRows-in-models into lp:unity-2d/3.0
Status: | Merged |
---|---|
Approved by: | Olivier Tilloy |
Approved revision: | 591 |
Merged at revision: | 590 |
Proposed branch: | lp:~uriboni/unity-2d/support-removeRows-in-models |
Merge into: | lp:unity-2d/3.0 |
Diff against target: |
115 lines (+64/-1) 4 files modified
libunity-2d-private/Unity2d/listaggregatormodel.cpp (+41/-0) libunity-2d-private/Unity2d/listaggregatormodel.h (+2/-0) libunity-2d-private/Unity2d/windowslist.cpp (+18/-0) libunity-2d-private/Unity2d/windowslist.h (+3/-1) |
To merge this branch: | bzr merge lp:~uriboni/unity-2d/support-removeRows-in-models |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Olivier Tilloy (community) | Approve | ||
Florian Boucault (community) | Needs Fixing | ||
Review via email: mp+63472@code.launchpad.net |
Commit message
Add support for removing rows by implementing the virtual method QAbstractItemMo
Make the internal list in WindowsList protected instead of private.
Description of the change
Add support for removing rows by implementing the virtual method QAbstractItemMo
Make the internal list in WindowsList protected instead of private so that it is easier for other classes to inherit from this model to do useful things.
This change is not currently needed by Unity-2d, but I do need it for another project.
It can be however pretty useful for Unity-2d too in the future as it's just standard functionality on the models that wasn't simply implemented before.
In WindowsList: :removeRows:
- a debug statement was leftover
- using removeAt would probably simplify the code quite a lot