{"action":"created","issue":{"url":"https://api.github.com/repos/pyblish/pyblish-lite/issues/21","repository_url":"https://api.github.com/repos/pyblish/pyblish-lite","labels_url":"https://api.github.com/repos/pyblish/pyblish-lite/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/pyblish/pyblish-lite/issues/21/comments","events_url":"https://api.github.com/repos/pyblish/pyblish-lite/issues/21/events","html_url":"https://github.com/pyblish/pyblish-lite/issues/21","id":154731131,"number":21,"title":"Implement sections for instances and plug-ins","user":{"login":"mottosso","id":2152766,"avatar_url":"https://avatars.githubusercontent.com/u/2152766?v=3","gravatar_id":"","url":"https://api.github.com/users/mottosso","html_url":"https://github.com/mottosso","followers_url":"https://api.github.com/users/mottosso/followers","following_url":"https://api.github.com/users/mottosso/following{/other_user}","gists_url":"https://api.github.com/users/mottosso/gists{/gist_id}","starred_url":"https://api.github.com/users/mottosso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mottosso/subscriptions","organizations_url":"https://api.github.com/users/mottosso/orgs","repos_url":"https://api.github.com/users/mottosso/repos","events_url":"https://api.github.com/users/mottosso/events{/privacy}","received_events_url":"https://api.github.com/users/mottosso/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyblish/pyblish-lite/labels/feature","name":"feature","color":"1d76db"},{"url":"https://api.github.com/repos/pyblish/pyblish-lite/labels/help%20wanted","name":"help wanted","color":"128A0C"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-05-13T14:55:34Z","updated_at":"2016-08-11T19:54:43Z","closed_at":null,"body":"### Goal\r\n\r\nIn Pyblish QML, groups of items have a handy section label. Implement similar functionality for Lite.\r\n\r\n### Implementation\r\n\r\nIn QML, the built-in ListView has a `section` attribute that does exactly this. In the case of Widgets, we'll need to implement this ourselves.\r\n\r\nOne way would be to add null items to the actual models, make them inactive and they would appear in the proper positions and faded.\r\n\r\nAt this point, this should be fine. But a more proper method is to use a proxy model and add these \"virtual\" items there. In that way, the model contains real data and proxies provide necessary auxiliary data, such as sections.\r\n\r\nWe'll need proxy models regardless, for sorting and filtering, so it could be good idea to keep things uniform and hack less."},"comment":{"url":"https://api.github.com/repos/pyblish/pyblish-lite/issues/comments/239272554","html_url":"https://github.com/pyblish/pyblish-lite/issues/21#issuecomment-239272554","issue_url":"https://api.github.com/repos/pyblish/pyblish-lite/issues/21","id":239272554,"user":{"login":"mottosso","id":2152766,"avatar_url":"https://avatars.githubusercontent.com/u/2152766?v=3","gravatar_id":"","url":"https://api.github.com/users/mottosso","html_url":"https://github.com/mottosso","followers_url":"https://api.github.com/users/mottosso/followers","following_url":"https://api.github.com/users/mottosso/following{/other_user}","gists_url":"https://api.github.com/users/mottosso/gists{/gist_id}","starred_url":"https://api.github.com/users/mottosso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mottosso/subscriptions","organizations_url":"https://api.github.com/users/mottosso/orgs","repos_url":"https://api.github.com/users/mottosso/repos","events_url":"https://api.github.com/users/mottosso/events{/privacy}","received_events_url":"https://api.github.com/users/mottosso/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T19:54:43Z","updated_at":"2016-08-11T19:54:43Z","body":"> So just to be clear. You aren't disputing the QTreeView, just that we don't mutilate the data?\r\n\r\nYes, that is fine. I think either are equally challenging to get right, it's adding these \"virtual\" items via the proxy that provide the challenge. Then whether you draw them in a list- or tree-view is pure cosmetics."}}
{"actor":{"display_login":"mottosso"}}