{"action":"created","comment":{"url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/comments/105266395","pull_request_review_id":26138474,"id":105266395,"diff_hunk":"@@ -94,3 +100,40 @@ void overlay::set_overlay_tool(SHAPES s) {\n void overlay::set_overlay_colour(QColor col) {\n     colour = col;\n }\n+\n+/**\n+ * @brief overlay::mouse_pressed\n+ * Starts drawing on the overlay when the mouse is\n+ * pressed, if the overlay is visible.\n+ * @param pos coordinates\n+ */\n+void overlay::mouse_pressed(QPoint pos) {\n+    if (show_overlay) {\n+        draw_start = pos;\n+        draw_end = pos;\n+    }\n+}\n+\n+/**\n+ * @brief overlay::mouse_pressed\n+ * Ends drawing on the overlay when the mouse is\n+ * released, if the overlay is visible.\n+ * @param pos coordinates\n+ */\n+void overlay::mouse_released(QPoint pos) {","path":"ViAn/Video/overlay.cpp","position":66,"original_position":66,"commit_id":"637e1a9da5f219be1ebe2276228c1493af8b498f","original_commit_id":"e488698fea439a9f80d1d497f1044e9dcf315640","user":{"login":"parso619","id":25896836,"avatar_url":"https://avatars3.githubusercontent.com/u/25896836?v=3","gravatar_id":"","url":"https://api.github.com/users/parso619","html_url":"https://github.com/parso619","followers_url":"https://api.github.com/users/parso619/followers","following_url":"https://api.github.com/users/parso619/following{/other_user}","gists_url":"https://api.github.com/users/parso619/gists{/gist_id}","starred_url":"https://api.github.com/users/parso619/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parso619/subscriptions","organizations_url":"https://api.github.com/users/parso619/orgs","repos_url":"https://api.github.com/users/parso619/repos","events_url":"https://api.github.com/users/parso619/events{/privacy}","received_events_url":"https://api.github.com/users/parso619/received_events","type":"User","site_admin":false},"body":"These will not be identical in future, but I've extracted the code to make it look nicer.","created_at":"2017-03-09T20:43:46Z","updated_at":"2017-03-09T20:43:46Z","html_url":"https://github.com/GeorgeYildiz/TDDD96-group6/pull/26#discussion_r105266395","pull_request_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/comments/105266395"},"html":{"href":"https://github.com/GeorgeYildiz/TDDD96-group6/pull/26#discussion_r105266395"},"pull_request":{"href":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/26","id":109902702,"html_url":"https://github.com/GeorgeYildiz/TDDD96-group6/pull/26","diff_url":"https://github.com/GeorgeYildiz/TDDD96-group6/pull/26.diff","patch_url":"https://github.com/GeorgeYildiz/TDDD96-group6/pull/26.patch","issue_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/issues/26","number":26,"state":"open","locked":false,"title":"Draw overlay","user":{"login":"parso619","id":25896836,"avatar_url":"https://avatars3.githubusercontent.com/u/25896836?v=3","gravatar_id":"","url":"https://api.github.com/users/parso619","html_url":"https://github.com/parso619","followers_url":"https://api.github.com/users/parso619/followers","following_url":"https://api.github.com/users/parso619/following{/other_user}","gists_url":"https://api.github.com/users/parso619/gists{/gist_id}","starred_url":"https://api.github.com/users/parso619/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parso619/subscriptions","organizations_url":"https://api.github.com/users/parso619/orgs","repos_url":"https://api.github.com/users/parso619/repos","events_url":"https://api.github.com/users/parso619/events{/privacy}","received_events_url":"https://api.github.com/users/parso619/received_events","type":"User","site_admin":false},"body":"Added functionality to draw on the overlay: Added MainWindow as a listener on the videoFrame and added functionality for mouse pressed/released/moved to update the shape being drawn on the overlay.","created_at":"2017-03-09T12:27:50Z","updated_at":"2017-03-09T20:43:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"209084f4151915a156e0789e4f9311a5a1a4fb03","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/26/commits","review_comments_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/26/comments","review_comment_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/issues/26/comments","statuses_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/statuses/637e1a9da5f219be1ebe2276228c1493af8b498f","head":{"label":"GeorgeYildiz:draw-overlay","ref":"draw-overlay","sha":"637e1a9da5f219be1ebe2276228c1493af8b498f","user":{"login":"GeorgeYildiz","id":9120409,"avatar_url":"https://avatars3.githubusercontent.com/u/9120409?v=3","gravatar_id":"","url":"https://api.github.com/users/GeorgeYildiz","html_url":"https://github.com/GeorgeYildiz","followers_url":"https://api.github.com/users/GeorgeYildiz/followers","following_url":"https://api.github.com/users/GeorgeYildiz/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeYildiz/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeYildiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeYildiz/subscriptions","organizations_url":"https://api.github.com/users/GeorgeYildiz/orgs","repos_url":"https://api.github.com/users/GeorgeYildiz/repos","events_url":"https://api.github.com/users/GeorgeYildiz/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeYildiz/received_events","type":"User","site_admin":false},"repo":{"id":82538951,"name":"TDDD96-group6","full_name":"GeorgeYildiz/TDDD96-group6","owner":{"login":"GeorgeYildiz","id":9120409,"avatar_url":"https://avatars3.githubusercontent.com/u/9120409?v=3","gravatar_id":"","url":"https://api.github.com/users/GeorgeYildiz","html_url":"https://github.com/GeorgeYildiz","followers_url":"https://api.github.com/users/GeorgeYildiz/followers","following_url":"https://api.github.com/users/GeorgeYildiz/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeYildiz/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeYildiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeYildiz/subscriptions","organizations_url":"https://api.github.com/users/GeorgeYildiz/orgs","repos_url":"https://api.github.com/users/GeorgeYildiz/repos","events_url":"https://api.github.com/users/GeorgeYildiz/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeYildiz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GeorgeYildiz/TDDD96-group6","description":"TDDD96 - This is a project made by student at Linkopings unviersity","fork":false,"url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6","forks_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/forks","keys_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/teams","hooks_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/hooks","issue_events_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/issues/events{/number}","events_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/events","assignees_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/assignees{/user}","branches_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/branches{/branch}","tags_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/tags","blobs_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/statuses/{sha}","languages_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/languages","stargazers_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/stargazers","contributors_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/contributors","subscribers_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/subscribers","subscription_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/subscription","commits_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/contents/{+path}","compare_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/merges","archive_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/downloads","issues_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/issues{/number}","pulls_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls{/number}","milestones_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/milestones{/number}","notifications_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/labels{/name}","releases_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/releases{/id}","deployments_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/deployments","created_at":"2017-02-20T09:18:59Z","updated_at":"2017-03-09T19:45:31Z","pushed_at":"2017-03-09T20:43:19Z","git_url":"git://github.com/GeorgeYildiz/TDDD96-group6.git","ssh_url":"git@github.com:GeorgeYildiz/TDDD96-group6.git","clone_url":"https://github.com/GeorgeYildiz/TDDD96-group6.git","svn_url":"https://github.com/GeorgeYildiz/TDDD96-group6","homepage":null,"size":3771,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"GeorgeYildiz:master","ref":"master","sha":"5c1bbba6ce71bbbb9f977150aa9660a0445b2bc7","user":{"login":"GeorgeYildiz","id":9120409,"avatar_url":"https://avatars3.githubusercontent.com/u/9120409?v=3","gravatar_id":"","url":"https://api.github.com/users/GeorgeYildiz","html_url":"https://github.com/GeorgeYildiz","followers_url":"https://api.github.com/users/GeorgeYildiz/followers","following_url":"https://api.github.com/users/GeorgeYildiz/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeYildiz/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeYildiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeYildiz/subscriptions","organizations_url":"https://api.github.com/users/GeorgeYildiz/orgs","repos_url":"https://api.github.com/users/GeorgeYildiz/repos","events_url":"https://api.github.com/users/GeorgeYildiz/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeYildiz/received_events","type":"User","site_admin":false},"repo":{"id":82538951,"name":"TDDD96-group6","full_name":"GeorgeYildiz/TDDD96-group6","owner":{"login":"GeorgeYildiz","id":9120409,"avatar_url":"https://avatars3.githubusercontent.com/u/9120409?v=3","gravatar_id":"","url":"https://api.github.com/users/GeorgeYildiz","html_url":"https://github.com/GeorgeYildiz","followers_url":"https://api.github.com/users/GeorgeYildiz/followers","following_url":"https://api.github.com/users/GeorgeYildiz/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeYildiz/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeYildiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeYildiz/subscriptions","organizations_url":"https://api.github.com/users/GeorgeYildiz/orgs","repos_url":"https://api.github.com/users/GeorgeYildiz/repos","events_url":"https://api.github.com/users/GeorgeYildiz/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeYildiz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GeorgeYildiz/TDDD96-group6","description":"TDDD96 - This is a project made by student at Linkopings unviersity","fork":false,"url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6","forks_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/forks","keys_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/teams","hooks_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/hooks","issue_events_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/issues/events{/number}","events_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/events","assignees_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/assignees{/user}","branches_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/branches{/branch}","tags_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/tags","blobs_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/statuses/{sha}","languages_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/languages","stargazers_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/stargazers","contributors_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/contributors","subscribers_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/subscribers","subscription_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/subscription","commits_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/contents/{+path}","compare_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/merges","archive_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/downloads","issues_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/issues{/number}","pulls_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls{/number}","milestones_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/milestones{/number}","notifications_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/labels{/name}","releases_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/releases{/id}","deployments_url":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/deployments","created_at":"2017-02-20T09:18:59Z","updated_at":"2017-03-09T19:45:31Z","pushed_at":"2017-03-09T20:43:19Z","git_url":"git://github.com/GeorgeYildiz/TDDD96-group6.git","ssh_url":"git@github.com:GeorgeYildiz/TDDD96-group6.git","clone_url":"https://github.com/GeorgeYildiz/TDDD96-group6.git","svn_url":"https://github.com/GeorgeYildiz/TDDD96-group6","homepage":null,"size":3771,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/26"},"html":{"href":"https://github.com/GeorgeYildiz/TDDD96-group6/pull/26"},"issue":{"href":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/issues/26"},"comments":{"href":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/GeorgeYildiz/TDDD96-group6/statuses/637e1a9da5f219be1ebe2276228c1493af8b498f"}}}}
{"actor":{"display_login":"parso619"}}