{"action":"created","comment":{"url":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/comments/188908446","pull_request_review_id":120977281,"id":188908446,"diff_hunk":"@@ -52,6 +87,52 @@ void QgsQuickUtils::logMessage( const QString &message, const QString &tag, Qgis\n   QgsMessageLog::logMessage( message, tag, level );\n }\n \n+QUrl QgsQuickUtils::getThemeIcon( const QString &name )\n+{\n+  QString extension( \".svg\" );\n+  QString path = \"qrc:/\" + name + extension;\n+  QgsDebugMsg( QStringLiteral( \"Using icon %1 from %2\" ).arg( name, path ) );\n+  return QUrl( path );\n+}\n+\n+QString QgsQuickUtils::qgsPointToString( const QgsPoint &point, int decimals )\n+{\n+  QString label;\n+  label += QString::number( point.x(), 'f', decimals );\n+  label += \", \";\n+  label += QString::number( point.y(), 'f', decimals );\n+  return label;\n+}\n+\n+QString QgsQuickUtils::distanceToString( qreal dist, int decimals )\n+{\n+  if ( dist < 0 )\n+  {\n+    return \"0 m\";","path":"src/quickgui/qgsquickutils.cpp","position":74,"original_position":74,"commit_id":"ce4ee14e3baf0c130306a67785a0760f8d2316e7","original_commit_id":"ce4ee14e3baf0c130306a67785a0760f8d2316e7","user":{"login":"PeterPetrik","id":804608,"avatar_url":"https://avatars2.githubusercontent.com/u/804608?v=4","gravatar_id":"","url":"https://api.github.com/users/PeterPetrik","html_url":"https://github.com/PeterPetrik","followers_url":"https://api.github.com/users/PeterPetrik/followers","following_url":"https://api.github.com/users/PeterPetrik/following{/other_user}","gists_url":"https://api.github.com/users/PeterPetrik/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterPetrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterPetrik/subscriptions","organizations_url":"https://api.github.com/users/PeterPetrik/orgs","repos_url":"https://api.github.com/users/PeterPetrik/repos","events_url":"https://api.github.com/users/PeterPetrik/events{/privacy}","received_events_url":"https://api.github.com/users/PeterPetrik/received_events","type":"User","site_admin":false},"body":"use something like `QStringLitraral(\"0 %1\").arg(QgsUnitTypes::toAbbreviatedString( QgsUnitTypes::DistanceKilometers )) `\r\nhttps://github.com/qgis/QGIS/blob/master/src/quickgui/qgsquickscalebarkit.cpp#L89","created_at":"2018-05-17T10:19:37Z","updated_at":"2018-05-17T10:42:41Z","html_url":"https://github.com/PeterPetrik/QGIS/pull/7#discussion_r188908446","pull_request_url":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/7","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/comments/188908446"},"html":{"href":"https://github.com/PeterPetrik/QGIS/pull/7#discussion_r188908446"},"pull_request":{"href":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/7","id":188677032,"html_url":"https://github.com/PeterPetrik/QGIS/pull/7","diff_url":"https://github.com/PeterPetrik/QGIS/pull/7.diff","patch_url":"https://github.com/PeterPetrik/QGIS/pull/7.patch","issue_url":"https://api.github.com/repos/PeterPetrik/QGIS/issues/7","number":7,"state":"open","locked":false,"title":"Qgs quick position2","user":{"login":"sklencar","id":6735606,"avatar_url":"https://avatars2.githubusercontent.com/u/6735606?v=4","gravatar_id":"","url":"https://api.github.com/users/sklencar","html_url":"https://github.com/sklencar","followers_url":"https://api.github.com/users/sklencar/followers","following_url":"https://api.github.com/users/sklencar/following{/other_user}","gists_url":"https://api.github.com/users/sklencar/gists{/gist_id}","starred_url":"https://api.github.com/users/sklencar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sklencar/subscriptions","organizations_url":"https://api.github.com/users/sklencar/orgs","repos_url":"https://api.github.com/users/sklencar/repos","events_url":"https://api.github.com/users/sklencar/events{/privacy}","received_events_url":"https://api.github.com/users/sklencar/received_events","type":"User","site_admin":false},"body":"This pull request is a subset of [(#6490 )](https://github.com/qgis/QGIS/pull/6490)\r\nThis adds Position marker component and related classes.\r\nFor background information see the associated [QEP](https://github.com/qgis/QGIS-Enhancement-Proposals/issues/109).","created_at":"2018-05-17T09:36:12Z","updated_at":"2018-05-17T10:42:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da9958f0cb9db1459d3288e4a92fa7453beea646","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/7/commits","review_comments_url":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/7/comments","review_comment_url":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PeterPetrik/QGIS/issues/7/comments","statuses_url":"https://api.github.com/repos/PeterPetrik/QGIS/statuses/ce4ee14e3baf0c130306a67785a0760f8d2316e7","head":{"label":"PeterPetrik:qgs-quick-position2","ref":"qgs-quick-position2","sha":"ce4ee14e3baf0c130306a67785a0760f8d2316e7","user":{"login":"PeterPetrik","id":804608,"avatar_url":"https://avatars2.githubusercontent.com/u/804608?v=4","gravatar_id":"","url":"https://api.github.com/users/PeterPetrik","html_url":"https://github.com/PeterPetrik","followers_url":"https://api.github.com/users/PeterPetrik/followers","following_url":"https://api.github.com/users/PeterPetrik/following{/other_user}","gists_url":"https://api.github.com/users/PeterPetrik/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterPetrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterPetrik/subscriptions","organizations_url":"https://api.github.com/users/PeterPetrik/orgs","repos_url":"https://api.github.com/users/PeterPetrik/repos","events_url":"https://api.github.com/users/PeterPetrik/events{/privacy}","received_events_url":"https://api.github.com/users/PeterPetrik/received_events","type":"User","site_admin":false},"repo":{"id":38666026,"name":"QGIS","full_name":"PeterPetrik/QGIS","owner":{"login":"PeterPetrik","id":804608,"avatar_url":"https://avatars2.githubusercontent.com/u/804608?v=4","gravatar_id":"","url":"https://api.github.com/users/PeterPetrik","html_url":"https://github.com/PeterPetrik","followers_url":"https://api.github.com/users/PeterPetrik/followers","following_url":"https://api.github.com/users/PeterPetrik/following{/other_user}","gists_url":"https://api.github.com/users/PeterPetrik/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterPetrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterPetrik/subscriptions","organizations_url":"https://api.github.com/users/PeterPetrik/orgs","repos_url":"https://api.github.com/users/PeterPetrik/repos","events_url":"https://api.github.com/users/PeterPetrik/events{/privacy}","received_events_url":"https://api.github.com/users/PeterPetrik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PeterPetrik/QGIS","description":"QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)","fork":true,"url":"https://api.github.com/repos/PeterPetrik/QGIS","forks_url":"https://api.github.com/repos/PeterPetrik/QGIS/forks","keys_url":"https://api.github.com/repos/PeterPetrik/QGIS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PeterPetrik/QGIS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PeterPetrik/QGIS/teams","hooks_url":"https://api.github.com/repos/PeterPetrik/QGIS/hooks","issue_events_url":"https://api.github.com/repos/PeterPetrik/QGIS/issues/events{/number}","events_url":"https://api.github.com/repos/PeterPetrik/QGIS/events","assignees_url":"https://api.github.com/repos/PeterPetrik/QGIS/assignees{/user}","branches_url":"https://api.github.com/repos/PeterPetrik/QGIS/branches{/branch}","tags_url":"https://api.github.com/repos/PeterPetrik/QGIS/tags","blobs_url":"https://api.github.com/repos/PeterPetrik/QGIS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PeterPetrik/QGIS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PeterPetrik/QGIS/git/refs{/sha}","trees_url":"https://api.github.com/repos/PeterPetrik/QGIS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PeterPetrik/QGIS/statuses/{sha}","languages_url":"https://api.github.com/repos/PeterPetrik/QGIS/languages","stargazers_url":"https://api.github.com/repos/PeterPetrik/QGIS/stargazers","contributors_url":"https://api.github.com/repos/PeterPetrik/QGIS/contributors","subscribers_url":"https://api.github.com/repos/PeterPetrik/QGIS/subscribers","subscription_url":"https://api.github.com/repos/PeterPetrik/QGIS/subscription","commits_url":"https://api.github.com/repos/PeterPetrik/QGIS/commits{/sha}","git_commits_url":"https://api.github.com/repos/PeterPetrik/QGIS/git/commits{/sha}","comments_url":"https://api.github.com/repos/PeterPetrik/QGIS/comments{/number}","issue_comment_url":"https://api.github.com/repos/PeterPetrik/QGIS/issues/comments{/number}","contents_url":"https://api.github.com/repos/PeterPetrik/QGIS/contents/{+path}","compare_url":"https://api.github.com/repos/PeterPetrik/QGIS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PeterPetrik/QGIS/merges","archive_url":"https://api.github.com/repos/PeterPetrik/QGIS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PeterPetrik/QGIS/downloads","issues_url":"https://api.github.com/repos/PeterPetrik/QGIS/issues{/number}","pulls_url":"https://api.github.com/repos/PeterPetrik/QGIS/pulls{/number}","milestones_url":"https://api.github.com/repos/PeterPetrik/QGIS/milestones{/number}","notifications_url":"https://api.github.com/repos/PeterPetrik/QGIS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PeterPetrik/QGIS/labels{/name}","releases_url":"https://api.github.com/repos/PeterPetrik/QGIS/releases{/id}","deployments_url":"https://api.github.com/repos/PeterPetrik/QGIS/deployments","created_at":"2015-07-07T05:24:42Z","updated_at":"2018-05-17T06:09:03Z","pushed_at":"2018-05-17T09:36:13Z","git_url":"git://github.com/PeterPetrik/QGIS.git","ssh_url":"git@github.com:PeterPetrik/QGIS.git","clone_url":"https://github.com/PeterPetrik/QGIS.git","svn_url":"https://github.com/PeterPetrik/QGIS","homepage":"http://qgis.org","size":1356454,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"PeterPetrik:master","ref":"master","sha":"87a60d437f90efbc5b24f8e17f3db28e0e34d5a7","user":{"login":"PeterPetrik","id":804608,"avatar_url":"https://avatars2.githubusercontent.com/u/804608?v=4","gravatar_id":"","url":"https://api.github.com/users/PeterPetrik","html_url":"https://github.com/PeterPetrik","followers_url":"https://api.github.com/users/PeterPetrik/followers","following_url":"https://api.github.com/users/PeterPetrik/following{/other_user}","gists_url":"https://api.github.com/users/PeterPetrik/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterPetrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterPetrik/subscriptions","organizations_url":"https://api.github.com/users/PeterPetrik/orgs","repos_url":"https://api.github.com/users/PeterPetrik/repos","events_url":"https://api.github.com/users/PeterPetrik/events{/privacy}","received_events_url":"https://api.github.com/users/PeterPetrik/received_events","type":"User","site_admin":false},"repo":{"id":38666026,"name":"QGIS","full_name":"PeterPetrik/QGIS","owner":{"login":"PeterPetrik","id":804608,"avatar_url":"https://avatars2.githubusercontent.com/u/804608?v=4","gravatar_id":"","url":"https://api.github.com/users/PeterPetrik","html_url":"https://github.com/PeterPetrik","followers_url":"https://api.github.com/users/PeterPetrik/followers","following_url":"https://api.github.com/users/PeterPetrik/following{/other_user}","gists_url":"https://api.github.com/users/PeterPetrik/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterPetrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterPetrik/subscriptions","organizations_url":"https://api.github.com/users/PeterPetrik/orgs","repos_url":"https://api.github.com/users/PeterPetrik/repos","events_url":"https://api.github.com/users/PeterPetrik/events{/privacy}","received_events_url":"https://api.github.com/users/PeterPetrik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PeterPetrik/QGIS","description":"QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)","fork":true,"url":"https://api.github.com/repos/PeterPetrik/QGIS","forks_url":"https://api.github.com/repos/PeterPetrik/QGIS/forks","keys_url":"https://api.github.com/repos/PeterPetrik/QGIS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PeterPetrik/QGIS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PeterPetrik/QGIS/teams","hooks_url":"https://api.github.com/repos/PeterPetrik/QGIS/hooks","issue_events_url":"https://api.github.com/repos/PeterPetrik/QGIS/issues/events{/number}","events_url":"https://api.github.com/repos/PeterPetrik/QGIS/events","assignees_url":"https://api.github.com/repos/PeterPetrik/QGIS/assignees{/user}","branches_url":"https://api.github.com/repos/PeterPetrik/QGIS/branches{/branch}","tags_url":"https://api.github.com/repos/PeterPetrik/QGIS/tags","blobs_url":"https://api.github.com/repos/PeterPetrik/QGIS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PeterPetrik/QGIS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PeterPetrik/QGIS/git/refs{/sha}","trees_url":"https://api.github.com/repos/PeterPetrik/QGIS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PeterPetrik/QGIS/statuses/{sha}","languages_url":"https://api.github.com/repos/PeterPetrik/QGIS/languages","stargazers_url":"https://api.github.com/repos/PeterPetrik/QGIS/stargazers","contributors_url":"https://api.github.com/repos/PeterPetrik/QGIS/contributors","subscribers_url":"https://api.github.com/repos/PeterPetrik/QGIS/subscribers","subscription_url":"https://api.github.com/repos/PeterPetrik/QGIS/subscription","commits_url":"https://api.github.com/repos/PeterPetrik/QGIS/commits{/sha}","git_commits_url":"https://api.github.com/repos/PeterPetrik/QGIS/git/commits{/sha}","comments_url":"https://api.github.com/repos/PeterPetrik/QGIS/comments{/number}","issue_comment_url":"https://api.github.com/repos/PeterPetrik/QGIS/issues/comments{/number}","contents_url":"https://api.github.com/repos/PeterPetrik/QGIS/contents/{+path}","compare_url":"https://api.github.com/repos/PeterPetrik/QGIS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PeterPetrik/QGIS/merges","archive_url":"https://api.github.com/repos/PeterPetrik/QGIS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PeterPetrik/QGIS/downloads","issues_url":"https://api.github.com/repos/PeterPetrik/QGIS/issues{/number}","pulls_url":"https://api.github.com/repos/PeterPetrik/QGIS/pulls{/number}","milestones_url":"https://api.github.com/repos/PeterPetrik/QGIS/milestones{/number}","notifications_url":"https://api.github.com/repos/PeterPetrik/QGIS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PeterPetrik/QGIS/labels{/name}","releases_url":"https://api.github.com/repos/PeterPetrik/QGIS/releases{/id}","deployments_url":"https://api.github.com/repos/PeterPetrik/QGIS/deployments","created_at":"2015-07-07T05:24:42Z","updated_at":"2018-05-17T06:09:03Z","pushed_at":"2018-05-17T09:36:13Z","git_url":"git://github.com/PeterPetrik/QGIS.git","ssh_url":"git@github.com:PeterPetrik/QGIS.git","clone_url":"https://github.com/PeterPetrik/QGIS.git","svn_url":"https://github.com/PeterPetrik/QGIS","homepage":"http://qgis.org","size":1356454,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/7"},"html":{"href":"https://github.com/PeterPetrik/QGIS/pull/7"},"issue":{"href":"https://api.github.com/repos/PeterPetrik/QGIS/issues/7"},"comments":{"href":"https://api.github.com/repos/PeterPetrik/QGIS/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PeterPetrik/QGIS/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/PeterPetrik/QGIS/statuses/ce4ee14e3baf0c130306a67785a0760f8d2316e7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"PeterPetrik"}}