GitHub PullRequestReviewCommentEvent at 2014-03-13 12:27:55
Repository: qreal
Actor: dvvrd
Payload: {"comment":{"url":"https://api.github.com/repos/qreal/qreal/pulls/comments/10561932","id":10561932,"diff_hunk":"@@ -282,3 +286,83 @@ void EditorView::zoom(qreal const zoomFactor)\n \n \tcheckGrid();\n }\n+\n+void EditorView::addMiniMap(MiniMap *mm)\n+{\n+\tmMiniMap = mm;\n+\tmMiniMapShell = new MiniMapShell(this, mm);\n+\tmMiniMapShell->setParent(this);\n+\n+\tconnect(this, SIGNAL(changeMiniMapPos(QPoint)), mMiniMapShell, SLOT(saveSceneCoordinates(QPoint)));\n+\n+\temit changeMiniMapPos(QPoint(0, 0));\n+\n+\tQPoint mMiniMapPos = mMiniMapShell->getSceneCoordinates();\n+\tmMiniMapShell->move(mMiniMapPos);\n+}\n+\n+void EditorView::replaceMiniMap()\n+{\n+\tmMiniMapShell->currentTabChanged();\n+\tQPoint mMiniMapPos = mMiniMapShell->getSceneCoordinates();\n+\tmMiniMapShell->move(mMiniMapPos);\n+\tmMiniMap->show();\n+}\n+\n+void EditorView::updateMiniMap()\n+{\n+\tmMiniMapShell->changeSize();\n+}\n+\n+void EditorView::moveMiniMap(QPoint miniMapPos)","path":"qrgui/view/editorView.cpp","position":61,"original_position":61,"commit_id":"846e67093db8473576bf4faac5bc3ba7ac550e7d","original_commit_id":"846e67093db8473576bf4faac5bc3ba7ac550e7d","user":{"login":"dvvrd","id":734254,"avatar_url":"https://gravatar.com/avatar/9f89c0b92a7b9aa2a052a47dde60c988?d=https%3A%2F%2Fidenticons.github.com%2Ff7c15c5d09731755e987bf43ed8c343d.png&r=x","gravatar_id":"9f89c0b92a7b9aa2a052a47dde60c988","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":"И вообще, приведите код этого метода в порядок, он просто ужасен","created_at":"2014-03-13T12:27:55Z","updated_at":"2014-03-13T12:27:55Z","html_url":"https://github.com/qreal/qreal/pull/1238#discussion_r10561932","pull_request_url":"https://api.github.com/repos/qreal/qreal/pulls/1238","_links":{"self":{"href":"https://api.github.com/repos/qreal/qreal/pulls/comments/10561932"},"html":{"href":"https://github.com/qreal/qreal/pull/1238#discussion_r10561932"},"pull_request":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1238"}}}}