{"action":"created","comment":{"url":"https://api.github.com/repos/mixxxdj/mixxx/pulls/comments/31321416","id":31321416,"diff_hunk":"@@ -193,3 +193,9 @@ TreeItem* TreeItemModel::getItem(const QModelIndex &index) const {\n     }\n     return m_pRootItem;\n }\n+\n+void TreeItemModel::triggerRepaint() {\n+    //todo: find a nicer way to do this. Works as it should but kind of hackish","path":"src/library/treeitemmodel.cpp","position":6,"original_position":6,"commit_id":"ca3f01198eb451a00f5eef2e11d68ac77f896fe6","original_commit_id":"a096fb68a61ce8734953fa6b1606bb06fafdcaf8","user":{"login":"MK-42","id":5477999,"avatar_url":"https://avatars.githubusercontent.com/u/5477999?v=3","gravatar_id":"","url":"https://api.github.com/users/MK-42","html_url":"https://github.com/MK-42","followers_url":"https://api.github.com/users/MK-42/followers","following_url":"https://api.github.com/users/MK-42/following{/other_user}","gists_url":"https://api.github.com/users/MK-42/gists{/gist_id}","starred_url":"https://api.github.com/users/MK-42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MK-42/subscriptions","organizations_url":"https://api.github.com/users/MK-42/orgs","repos_url":"https://api.github.com/users/MK-42/repos","events_url":"https://api.github.com/users/MK-42/events{/privacy}","received_events_url":"https://api.github.com/users/MK-42/received_events","type":"User","site_admin":false},"body":"Yes I did (just now once again to be sure). It has no effect. The Widget will not repaint.\r\n\r\nI have a solution now without the sideeffect of moving selection by doing\r\n`beginInsertRows(QModelIndex(), rowCount(), rowCount());`\r\n`endInsertRows()`\r\n\r\nbut that also isn't the nice way...","created_at":"2015-05-29T12:55:58Z","updated_at":"2015-05-29T12:55:58Z","html_url":"https://github.com/mixxxdj/mixxx/pull/598#discussion_r31321416","pull_request_url":"https://api.github.com/repos/mixxxdj/mixxx/pulls/598","_links":{"self":{"href":"https://api.github.com/repos/mixxxdj/mixxx/pulls/comments/31321416"},"html":{"href":"https://github.com/mixxxdj/mixxx/pull/598#discussion_r31321416"},"pull_request":{"href":"https://api.github.com/repos/mixxxdj/mixxx/pulls/598"}}},"pull_request":{"url":"https://api.github.com/repos/mixxxdj/mixxx/pulls/598","id":36440746,"html_url":"https://github.com/mixxxdj/mixxx/pull/598","diff_url":"https://github.com/mixxxdj/mixxx/pull/598.diff","patch_url":"https://github.com/mixxxdj/mixxx/pull/598.patch","issue_url":"https://api.github.com/repos/mixxxdj/mixxx/issues/598","number":598,"state":"open","locked":false,"title":"Highlight Crates a Track is in","user":{"login":"MK-42","id":5477999,"avatar_url":"https://avatars.githubusercontent.com/u/5477999?v=3","gravatar_id":"","url":"https://api.github.com/users/MK-42","html_url":"https://github.com/MK-42","followers_url":"https://api.github.com/users/MK-42/followers","following_url":"https://api.github.com/users/MK-42/following{/other_user}","gists_url":"https://api.github.com/users/MK-42/gists{/gist_id}","starred_url":"https://api.github.com/users/MK-42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MK-42/subscriptions","organizations_url":"https://api.github.com/users/MK-42/orgs","repos_url":"https://api.github.com/users/MK-42/repos","events_url":"https://api.github.com/users/MK-42/events{/privacy}","received_events_url":"https://api.github.com/users/MK-42/received_events","type":"User","site_admin":false},"body":"I've added some basic handling for lp: 1380467 (https://bugs.launchpad.net/mixxx/+bug/1380467)\r\n\r\nThis will save the last selected track from trackSelected signal of the library and use a delegate for the LibraryTreeView to highlight the crates that track is in.\r\n\r\nTodo:\r\nFind a way to repaint the widget after style-change (any hints on that?) for now scrolling the treeView brings it to live.\r\nApply the same for playlists\r\n\r\nSome questions:\r\n1) how to trigger the repaint the best/preferred way?\r\n2) is it ok what I'm doing there? Adding a getter for CrateDao Just trying to get this working, any hints are welcome.\r\n\r\nbtw: what is dao short for? Maybe st. like dataAccessObject? Just curious, maybe makes it easier to read for me.","created_at":"2015-05-28T19:15:43Z","updated_at":"2015-05-29T12:55:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"776bbf79e281108400c175ae1c0d5e2a35b1000f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mixxxdj/mixxx/pulls/598/commits","review_comments_url":"https://api.github.com/repos/mixxxdj/mixxx/pulls/598/comments","review_comment_url":"https://api.github.com/repos/mixxxdj/mixxx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mixxxdj/mixxx/issues/598/comments","statuses_url":"https://api.github.com/repos/mixxxdj/mixxx/statuses/ca3f01198eb451a00f5eef2e11d68ac77f896fe6","head":{"label":"MK-42:HighlightCratesNew","ref":"HighlightCratesNew","sha":"ca3f01198eb451a00f5eef2e11d68ac77f896fe6","user":{"login":"MK-42","id":5477999,"avatar_url":"https://avatars.githubusercontent.com/u/5477999?v=3","gravatar_id":"","url":"https://api.github.com/users/MK-42","html_url":"https://github.com/MK-42","followers_url":"https://api.github.com/users/MK-42/followers","following_url":"https://api.github.com/users/MK-42/following{/other_user}","gists_url":"https://api.github.com/users/MK-42/gists{/gist_id}","starred_url":"https://api.github.com/users/MK-42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MK-42/subscriptions","organizations_url":"https://api.github.com/users/MK-42/orgs","repos_url":"https://api.github.com/users/MK-42/repos","events_url":"https://api.github.com/users/MK-42/events{/privacy}","received_events_url":"https://api.github.com/users/MK-42/received_events","type":"User","site_admin":false},"repo":{"id":35905937,"name":"mixxx","full_name":"MK-42/mixxx","owner":{"login":"MK-42","id":5477999,"avatar_url":"https://avatars.githubusercontent.com/u/5477999?v=3","gravatar_id":"","url":"https://api.github.com/users/MK-42","html_url":"https://github.com/MK-42","followers_url":"https://api.github.com/users/MK-42/followers","following_url":"https://api.github.com/users/MK-42/following{/other_user}","gists_url":"https://api.github.com/users/MK-42/gists{/gist_id}","starred_url":"https://api.github.com/users/MK-42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MK-42/subscriptions","organizations_url":"https://api.github.com/users/MK-42/orgs","repos_url":"https://api.github.com/users/MK-42/repos","events_url":"https://api.github.com/users/MK-42/events{/privacy}","received_events_url":"https://api.github.com/users/MK-42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MK-42/mixxx","description":"Mixxx is Free DJ software that gives you everything you need to perform live mixes.","fork":true,"url":"https://api.github.com/repos/MK-42/mixxx","forks_url":"https://api.github.com/repos/MK-42/mixxx/forks","keys_url":"https://api.github.com/repos/MK-42/mixxx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MK-42/mixxx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MK-42/mixxx/teams","hooks_url":"https://api.github.com/repos/MK-42/mixxx/hooks","issue_events_url":"https://api.github.com/repos/MK-42/mixxx/issues/events{/number}","events_url":"https://api.github.com/repos/MK-42/mixxx/events","assignees_url":"https://api.github.com/repos/MK-42/mixxx/assignees{/user}","branches_url":"https://api.github.com/repos/MK-42/mixxx/branches{/branch}","tags_url":"https://api.github.com/repos/MK-42/mixxx/tags","blobs_url":"https://api.github.com/repos/MK-42/mixxx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MK-42/mixxx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MK-42/mixxx/git/refs{/sha}","trees_url":"https://api.github.com/repos/MK-42/mixxx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MK-42/mixxx/statuses/{sha}","languages_url":"https://api.github.com/repos/MK-42/mixxx/languages","stargazers_url":"https://api.github.com/repos/MK-42/mixxx/stargazers","contributors_url":"https://api.github.com/repos/MK-42/mixxx/contributors","subscribers_url":"https://api.github.com/repos/MK-42/mixxx/subscribers","subscription_url":"https://api.github.com/repos/MK-42/mixxx/subscription","commits_url":"https://api.github.com/repos/MK-42/mixxx/commits{/sha}","git_commits_url":"https://api.github.com/repos/MK-42/mixxx/git/commits{/sha}","comments_url":"https://api.github.com/repos/MK-42/mixxx/comments{/number}","issue_comment_url":"https://api.github.com/repos/MK-42/mixxx/issues/comments{/number}","contents_url":"https://api.github.com/repos/MK-42/mixxx/contents/{+path}","compare_url":"https://api.github.com/repos/MK-42/mixxx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MK-42/mixxx/merges","archive_url":"https://api.github.com/repos/MK-42/mixxx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MK-42/mixxx/downloads","issues_url":"https://api.github.com/repos/MK-42/mixxx/issues{/number}","pulls_url":"https://api.github.com/repos/MK-42/mixxx/pulls{/number}","milestones_url":"https://api.github.com/repos/MK-42/mixxx/milestones{/number}","notifications_url":"https://api.github.com/repos/MK-42/mixxx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MK-42/mixxx/labels{/name}","releases_url":"https://api.github.com/repos/MK-42/mixxx/releases{/id}","created_at":"2015-05-19T20:12:03Z","updated_at":"2015-05-19T20:12:13Z","pushed_at":"2015-05-29T12:03:33Z","git_url":"git://github.com/MK-42/mixxx.git","ssh_url":"git@github.com:MK-42/mixxx.git","clone_url":"https://github.com/MK-42/mixxx.git","svn_url":"https://github.com/MK-42/mixxx","homepage":"http://mixxx.org","size":247248,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mixxxdj:master","ref":"master","sha":"3f854c1674084609497036ba92e1605a43fb492f","user":{"login":"mixxxdj","id":1743769,"avatar_url":"https://avatars.githubusercontent.com/u/1743769?v=3","gravatar_id":"","url":"https://api.github.com/users/mixxxdj","html_url":"https://github.com/mixxxdj","followers_url":"https://api.github.com/users/mixxxdj/followers","following_url":"https://api.github.com/users/mixxxdj/following{/other_user}","gists_url":"https://api.github.com/users/mixxxdj/gists{/gist_id}","starred_url":"https://api.github.com/users/mixxxdj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixxxdj/subscriptions","organizations_url":"https://api.github.com/users/mixxxdj/orgs","repos_url":"https://api.github.com/users/mixxxdj/repos","events_url":"https://api.github.com/users/mixxxdj/events{/privacy}","received_events_url":"https://api.github.com/users/mixxxdj/received_events","type":"Organization","site_admin":false},"repo":{"id":10126031,"name":"mixxx","full_name":"mixxxdj/mixxx","owner":{"login":"mixxxdj","id":1743769,"avatar_url":"https://avatars.githubusercontent.com/u/1743769?v=3","gravatar_id":"","url":"https://api.github.com/users/mixxxdj","html_url":"https://github.com/mixxxdj","followers_url":"https://api.github.com/users/mixxxdj/followers","following_url":"https://api.github.com/users/mixxxdj/following{/other_user}","gists_url":"https://api.github.com/users/mixxxdj/gists{/gist_id}","starred_url":"https://api.github.com/users/mixxxdj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixxxdj/subscriptions","organizations_url":"https://api.github.com/users/mixxxdj/orgs","repos_url":"https://api.github.com/users/mixxxdj/repos","events_url":"https://api.github.com/users/mixxxdj/events{/privacy}","received_events_url":"https://api.github.com/users/mixxxdj/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixxxdj/mixxx","description":"Mixxx is Free DJ software that gives you everything you need to perform live mixes.","fork":false,"url":"https://api.github.com/repos/mixxxdj/mixxx","forks_url":"https://api.github.com/repos/mixxxdj/mixxx/forks","keys_url":"https://api.github.com/repos/mixxxdj/mixxx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixxxdj/mixxx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixxxdj/mixxx/teams","hooks_url":"https://api.github.com/repos/mixxxdj/mixxx/hooks","issue_events_url":"https://api.github.com/repos/mixxxdj/mixxx/issues/events{/number}","events_url":"https://api.github.com/repos/mixxxdj/mixxx/events","assignees_url":"https://api.github.com/repos/mixxxdj/mixxx/assignees{/user}","branches_url":"https://api.github.com/repos/mixxxdj/mixxx/branches{/branch}","tags_url":"https://api.github.com/repos/mixxxdj/mixxx/tags","blobs_url":"https://api.github.com/repos/mixxxdj/mixxx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixxxdj/mixxx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixxxdj/mixxx/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixxxdj/mixxx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixxxdj/mixxx/statuses/{sha}","languages_url":"https://api.github.com/repos/mixxxdj/mixxx/languages","stargazers_url":"https://api.github.com/repos/mixxxdj/mixxx/stargazers","contributors_url":"https://api.github.com/repos/mixxxdj/mixxx/contributors","subscribers_url":"https://api.github.com/repos/mixxxdj/mixxx/subscribers","subscription_url":"https://api.github.com/repos/mixxxdj/mixxx/subscription","commits_url":"https://api.github.com/repos/mixxxdj/mixxx/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixxxdj/mixxx/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixxxdj/mixxx/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixxxdj/mixxx/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixxxdj/mixxx/contents/{+path}","compare_url":"https://api.github.com/repos/mixxxdj/mixxx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixxxdj/mixxx/merges","archive_url":"https://api.github.com/repos/mixxxdj/mixxx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixxxdj/mixxx/downloads","issues_url":"https://api.github.com/repos/mixxxdj/mixxx/issues{/number}","pulls_url":"https://api.github.com/repos/mixxxdj/mixxx/pulls{/number}","milestones_url":"https://api.github.com/repos/mixxxdj/mixxx/milestones{/number}","notifications_url":"https://api.github.com/repos/mixxxdj/mixxx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixxxdj/mixxx/labels{/name}","releases_url":"https://api.github.com/repos/mixxxdj/mixxx/releases{/id}","created_at":"2013-05-17T15:14:38Z","updated_at":"2015-05-29T06:50:39Z","pushed_at":"2015-05-29T12:03:34Z","git_url":"git://github.com/mixxxdj/mixxx.git","ssh_url":"git@github.com:mixxxdj/mixxx.git","clone_url":"https://github.com/mixxxdj/mixxx.git","svn_url":"https://github.com/mixxxdj/mixxx","homepage":"http://mixxx.org","size":329738,"stargazers_count":295,"watchers_count":295,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":213,"mirror_url":null,"open_issues_count":40,"forks":213,"open_issues":40,"watchers":295,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mixxxdj/mixxx/pulls/598"},"html":{"href":"https://github.com/mixxxdj/mixxx/pull/598"},"issue":{"href":"https://api.github.com/repos/mixxxdj/mixxx/issues/598"},"comments":{"href":"https://api.github.com/repos/mixxxdj/mixxx/issues/598/comments"},"review_comments":{"href":"https://api.github.com/repos/mixxxdj/mixxx/pulls/598/comments"},"review_comment":{"href":"https://api.github.com/repos/mixxxdj/mixxx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mixxxdj/mixxx/pulls/598/commits"},"statuses":{"href":"https://api.github.com/repos/mixxxdj/mixxx/statuses/ca3f01198eb451a00f5eef2e11d68ac77f896fe6"}}}}