{"action":"created","comment":{"url":"https://api.github.com/repos/qreal/qreal/pulls/comments/36325050","id":36325050,"diff_hunk":"@@ -165,17 +165,19 @@ QImage TwoDModelEngineApi::areaUnderSensor(const PortInfo &port, qreal widthFact\n \t\t}\n \t}\n \n-\tQGraphicsItem * const sensorItem = mView.sensorItem(port);\n \tconst QPair<QPointF, qreal> neededPosDir = countPositionAndDirection(port);\n \tconst QPointF position = neededPosDir.first;\n \tconst qreal direction = neededPosDir.second;\n \tconst QRect imageRect = mModel.robotModels()[0]->info().sensorImageRect(device);\n \tconst qreal width = imageRect.width() * widthFactor / 2.0;\n-\tconst qreal rotationFactor = sensorItem->mapToScene(imageRect).boundingRect().width() / imageRect.width();\n+\n+\tQGraphicsRectItem sensorRectangle(imageRect);","path":"plugins/robots/common/twoDModel/src/engine/twoDModelEngineApi.cpp","position":33,"original_position":33,"commit_id":"f0babd26c8ad86ae1b0033f16219cf87e7bc7f15","original_commit_id":"f0babd26c8ad86ae1b0033f16219cf87e7bc7f15","user":{"login":"dvvrd","id":734254,"avatar_url":"https://avatars.githubusercontent.com/u/734254?v=3","gravatar_id":"","url":"https://api.github.com/users/dvvrd","html_url":"https://github.com/dvvrd","followers_url":"https://api.github.com/users/dvvrd/followers","following_url":"https://api.github.com/users/dvvrd/following{/other_user}","gists_url":"https://api.github.com/users/dvvrd/gists{/gist_id}","starred_url":"https://api.github.com/users/dvvrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvvrd/subscriptions","organizations_url":"https://api.github.com/users/dvvrd/orgs","repos_url":"https://api.github.com/users/dvvrd/repos","events_url":"https://api.github.com/users/dvvrd/events{/privacy}","received_events_url":"https://api.github.com/users/dvvrd/received_events","type":"User","site_admin":false},"body":"тут бы QTransform'ы, а то долго","created_at":"2015-08-05T16:53:39Z","updated_at":"2015-08-05T16:53:39Z","html_url":"https://github.com/qreal/qreal/pull/1562#discussion_r36325050","pull_request_url":"https://api.github.com/repos/qreal/qreal/pulls/1562","_links":{"self":{"href":"https://api.github.com/repos/qreal/qreal/pulls/comments/36325050"},"html":{"href":"https://github.com/qreal/qreal/pull/1562#discussion_r36325050"},"pull_request":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1562"}}},"pull_request":{"url":"https://api.github.com/repos/qreal/qreal/pulls/1562","id":41683349,"html_url":"https://github.com/qreal/qreal/pull/1562","diff_url":"https://github.com/qreal/qreal/pull/1562.diff","patch_url":"https://github.com/qreal/qreal/pull/1562.patch","issue_url":"https://api.github.com/repos/qreal/qreal/issues/1562","number":1562,"state":"open","locked":false,"title":"Some fixes for quantum indeterminacy in 2D model","user":{"login":"yurii-litvinov","id":706768,"avatar_url":"https://avatars.githubusercontent.com/u/706768?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-litvinov","html_url":"https://github.com/yurii-litvinov","followers_url":"https://api.github.com/users/yurii-litvinov/followers","following_url":"https://api.github.com/users/yurii-litvinov/following{/other_user}","gists_url":"https://api.github.com/users/yurii-litvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-litvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-litvinov/subscriptions","organizations_url":"https://api.github.com/users/yurii-litvinov/orgs","repos_url":"https://api.github.com/users/yurii-litvinov/repos","events_url":"https://api.github.com/users/yurii-litvinov/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-litvinov/received_events","type":"User","site_admin":false},"body":"\"Теперь мы знаем, в этом мире \r\nДля фатализма места нет \r\nЕго законы оказались шире \r\nСложнее, чем движения планет \r\n\r\nМы можем знать лишь вероятность \r\nЛишь случай полный господин \r\nИз всех сценариев возможных \r\nОн представляет нам один \r\n\r\nСредь множества потенциальных \r\nЕсть лишь один реальный путь \r\nИ то что реализовалось \r\nУже не смыть, не зачеркнуть \r\n\r\nНо если воспроизвелись бы \r\nБылые в точности года \r\nТо предсказать сюжет дальнейший \r\nМы не смогли бы и тогда\"","created_at":"2015-08-05T14:15:54Z","updated_at":"2015-08-05T16:53:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a911ead77f3586f9738bebab705273a9ac921c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qreal/qreal/pulls/1562/commits","review_comments_url":"https://api.github.com/repos/qreal/qreal/pulls/1562/comments","review_comment_url":"https://api.github.com/repos/qreal/qreal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qreal/qreal/issues/1562/comments","statuses_url":"https://api.github.com/repos/qreal/qreal/statuses/f0babd26c8ad86ae1b0033f16219cf87e7bc7f15","head":{"label":"qreal:stepic","ref":"stepic","sha":"f0babd26c8ad86ae1b0033f16219cf87e7bc7f15","user":{"login":"qreal","id":706806,"avatar_url":"https://avatars.githubusercontent.com/u/706806?v=3","gravatar_id":"","url":"https://api.github.com/users/qreal","html_url":"https://github.com/qreal","followers_url":"https://api.github.com/users/qreal/followers","following_url":"https://api.github.com/users/qreal/following{/other_user}","gists_url":"https://api.github.com/users/qreal/gists{/gist_id}","starred_url":"https://api.github.com/users/qreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qreal/subscriptions","organizations_url":"https://api.github.com/users/qreal/orgs","repos_url":"https://api.github.com/users/qreal/repos","events_url":"https://api.github.com/users/qreal/events{/privacy}","received_events_url":"https://api.github.com/users/qreal/received_events","type":"Organization","site_admin":false},"repo":{"id":1563281,"name":"qreal","full_name":"qreal/qreal","owner":{"login":"qreal","id":706806,"avatar_url":"https://avatars.githubusercontent.com/u/706806?v=3","gravatar_id":"","url":"https://api.github.com/users/qreal","html_url":"https://github.com/qreal","followers_url":"https://api.github.com/users/qreal/followers","following_url":"https://api.github.com/users/qreal/following{/other_user}","gists_url":"https://api.github.com/users/qreal/gists{/gist_id}","starred_url":"https://api.github.com/users/qreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qreal/subscriptions","organizations_url":"https://api.github.com/users/qreal/orgs","repos_url":"https://api.github.com/users/qreal/repos","events_url":"https://api.github.com/users/qreal/events{/privacy}","received_events_url":"https://api.github.com/users/qreal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qreal/qreal","description":"CASE and metaCASE system","fork":false,"url":"https://api.github.com/repos/qreal/qreal","forks_url":"https://api.github.com/repos/qreal/qreal/forks","keys_url":"https://api.github.com/repos/qreal/qreal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qreal/qreal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qreal/qreal/teams","hooks_url":"https://api.github.com/repos/qreal/qreal/hooks","issue_events_url":"https://api.github.com/repos/qreal/qreal/issues/events{/number}","events_url":"https://api.github.com/repos/qreal/qreal/events","assignees_url":"https://api.github.com/repos/qreal/qreal/assignees{/user}","branches_url":"https://api.github.com/repos/qreal/qreal/branches{/branch}","tags_url":"https://api.github.com/repos/qreal/qreal/tags","blobs_url":"https://api.github.com/repos/qreal/qreal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qreal/qreal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qreal/qreal/git/refs{/sha}","trees_url":"https://api.github.com/repos/qreal/qreal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qreal/qreal/statuses/{sha}","languages_url":"https://api.github.com/repos/qreal/qreal/languages","stargazers_url":"https://api.github.com/repos/qreal/qreal/stargazers","contributors_url":"https://api.github.com/repos/qreal/qreal/contributors","subscribers_url":"https://api.github.com/repos/qreal/qreal/subscribers","subscription_url":"https://api.github.com/repos/qreal/qreal/subscription","commits_url":"https://api.github.com/repos/qreal/qreal/commits{/sha}","git_commits_url":"https://api.github.com/repos/qreal/qreal/git/commits{/sha}","comments_url":"https://api.github.com/repos/qreal/qreal/comments{/number}","issue_comment_url":"https://api.github.com/repos/qreal/qreal/issues/comments{/number}","contents_url":"https://api.github.com/repos/qreal/qreal/contents/{+path}","compare_url":"https://api.github.com/repos/qreal/qreal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qreal/qreal/merges","archive_url":"https://api.github.com/repos/qreal/qreal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qreal/qreal/downloads","issues_url":"https://api.github.com/repos/qreal/qreal/issues{/number}","pulls_url":"https://api.github.com/repos/qreal/qreal/pulls{/number}","milestones_url":"https://api.github.com/repos/qreal/qreal/milestones{/number}","notifications_url":"https://api.github.com/repos/qreal/qreal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qreal/qreal/labels{/name}","releases_url":"https://api.github.com/repos/qreal/qreal/releases{/id}","created_at":"2011-04-03T15:38:06Z","updated_at":"2015-07-15T13:13:40Z","pushed_at":"2015-08-05T16:49:26Z","git_url":"git://github.com/qreal/qreal.git","ssh_url":"git@github.com:qreal/qreal.git","clone_url":"https://github.com/qreal/qreal.git","svn_url":"https://github.com/qreal/qreal","homepage":"","size":472029,"stargazers_count":36,"watchers_count":36,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":149,"forks":75,"open_issues":149,"watchers":36,"default_branch":"master"}},"base":{"label":"qreal:master","ref":"master","sha":"92b4ccf03c8c90c643dac0270c9e83076fd85562","user":{"login":"qreal","id":706806,"avatar_url":"https://avatars.githubusercontent.com/u/706806?v=3","gravatar_id":"","url":"https://api.github.com/users/qreal","html_url":"https://github.com/qreal","followers_url":"https://api.github.com/users/qreal/followers","following_url":"https://api.github.com/users/qreal/following{/other_user}","gists_url":"https://api.github.com/users/qreal/gists{/gist_id}","starred_url":"https://api.github.com/users/qreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qreal/subscriptions","organizations_url":"https://api.github.com/users/qreal/orgs","repos_url":"https://api.github.com/users/qreal/repos","events_url":"https://api.github.com/users/qreal/events{/privacy}","received_events_url":"https://api.github.com/users/qreal/received_events","type":"Organization","site_admin":false},"repo":{"id":1563281,"name":"qreal","full_name":"qreal/qreal","owner":{"login":"qreal","id":706806,"avatar_url":"https://avatars.githubusercontent.com/u/706806?v=3","gravatar_id":"","url":"https://api.github.com/users/qreal","html_url":"https://github.com/qreal","followers_url":"https://api.github.com/users/qreal/followers","following_url":"https://api.github.com/users/qreal/following{/other_user}","gists_url":"https://api.github.com/users/qreal/gists{/gist_id}","starred_url":"https://api.github.com/users/qreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qreal/subscriptions","organizations_url":"https://api.github.com/users/qreal/orgs","repos_url":"https://api.github.com/users/qreal/repos","events_url":"https://api.github.com/users/qreal/events{/privacy}","received_events_url":"https://api.github.com/users/qreal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qreal/qreal","description":"CASE and metaCASE system","fork":false,"url":"https://api.github.com/repos/qreal/qreal","forks_url":"https://api.github.com/repos/qreal/qreal/forks","keys_url":"https://api.github.com/repos/qreal/qreal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qreal/qreal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qreal/qreal/teams","hooks_url":"https://api.github.com/repos/qreal/qreal/hooks","issue_events_url":"https://api.github.com/repos/qreal/qreal/issues/events{/number}","events_url":"https://api.github.com/repos/qreal/qreal/events","assignees_url":"https://api.github.com/repos/qreal/qreal/assignees{/user}","branches_url":"https://api.github.com/repos/qreal/qreal/branches{/branch}","tags_url":"https://api.github.com/repos/qreal/qreal/tags","blobs_url":"https://api.github.com/repos/qreal/qreal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qreal/qreal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qreal/qreal/git/refs{/sha}","trees_url":"https://api.github.com/repos/qreal/qreal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qreal/qreal/statuses/{sha}","languages_url":"https://api.github.com/repos/qreal/qreal/languages","stargazers_url":"https://api.github.com/repos/qreal/qreal/stargazers","contributors_url":"https://api.github.com/repos/qreal/qreal/contributors","subscribers_url":"https://api.github.com/repos/qreal/qreal/subscribers","subscription_url":"https://api.github.com/repos/qreal/qreal/subscription","commits_url":"https://api.github.com/repos/qreal/qreal/commits{/sha}","git_commits_url":"https://api.github.com/repos/qreal/qreal/git/commits{/sha}","comments_url":"https://api.github.com/repos/qreal/qreal/comments{/number}","issue_comment_url":"https://api.github.com/repos/qreal/qreal/issues/comments{/number}","contents_url":"https://api.github.com/repos/qreal/qreal/contents/{+path}","compare_url":"https://api.github.com/repos/qreal/qreal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qreal/qreal/merges","archive_url":"https://api.github.com/repos/qreal/qreal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qreal/qreal/downloads","issues_url":"https://api.github.com/repos/qreal/qreal/issues{/number}","pulls_url":"https://api.github.com/repos/qreal/qreal/pulls{/number}","milestones_url":"https://api.github.com/repos/qreal/qreal/milestones{/number}","notifications_url":"https://api.github.com/repos/qreal/qreal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qreal/qreal/labels{/name}","releases_url":"https://api.github.com/repos/qreal/qreal/releases{/id}","created_at":"2011-04-03T15:38:06Z","updated_at":"2015-07-15T13:13:40Z","pushed_at":"2015-08-05T16:49:26Z","git_url":"git://github.com/qreal/qreal.git","ssh_url":"git@github.com:qreal/qreal.git","clone_url":"https://github.com/qreal/qreal.git","svn_url":"https://github.com/qreal/qreal","homepage":"","size":472029,"stargazers_count":36,"watchers_count":36,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":149,"forks":75,"open_issues":149,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1562"},"html":{"href":"https://github.com/qreal/qreal/pull/1562"},"issue":{"href":"https://api.github.com/repos/qreal/qreal/issues/1562"},"comments":{"href":"https://api.github.com/repos/qreal/qreal/issues/1562/comments"},"review_comments":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1562/comments"},"review_comment":{"href":"https://api.github.com/repos/qreal/qreal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1562/commits"},"statuses":{"href":"https://api.github.com/repos/qreal/qreal/statuses/f0babd26c8ad86ae1b0033f16219cf87e7bc7f15"}}}}