{"action":"created","comment":{"url":"https://api.github.com/repos/bjorn/tiled/pulls/comments/84996514","pull_request_review_id":5651630,"id":84996514,"diff_hunk":"@@ -996,6 +996,39 @@ void MapDocument::moveObjectsToGroup(const QList<MapObject *> &objects,\n     mUndoStack->endMacro();\n }\n \n+// TODO add undo code\n+void MapDocument::moveObjectIndex(const MapObject *object, int count)\n+{\n+    int index = 0;\n+    ObjectGroup *group = object->objectGroup();\n+\n+    while (index < group->objectCount() && group->objectAt( index ) != object)\n+        index++;","path":"src/tiled/mapdocument.cpp","position":11,"original_position":11,"commit_id":"0f259aafc506abe930e20e1a95d634099b22996d","original_commit_id":"0f259aafc506abe930e20e1a95d634099b22996d","user":{"login":"bjorn","id":531764,"avatar_url":"https://avatars.githubusercontent.com/u/531764?v=3","gravatar_id":"","url":"https://api.github.com/users/bjorn","html_url":"https://github.com/bjorn","followers_url":"https://api.github.com/users/bjorn/followers","following_url":"https://api.github.com/users/bjorn/following{/other_user}","gists_url":"https://api.github.com/users/bjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn/subscriptions","organizations_url":"https://api.github.com/users/bjorn/orgs","repos_url":"https://api.github.com/users/bjorn/repos","events_url":"https://api.github.com/users/bjorn/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn/received_events","type":"User","site_admin":false},"body":"Or just do:\r\n```c++\r\nint index = group->objects().indexOf(object);\r\n```","created_at":"2016-10-25T20:43:08Z","updated_at":"2016-10-25T20:49:27Z","html_url":"https://github.com/bjorn/tiled/pull/1384#discussion_r84996514","pull_request_url":"https://api.github.com/repos/bjorn/tiled/pulls/1384","_links":{"self":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/comments/84996514"},"html":{"href":"https://github.com/bjorn/tiled/pull/1384#discussion_r84996514"},"pull_request":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1384"}}},"pull_request":{"url":"https://api.github.com/repos/bjorn/tiled/pulls/1384","id":90808443,"html_url":"https://github.com/bjorn/tiled/pull/1384","diff_url":"https://github.com/bjorn/tiled/pull/1384.diff","patch_url":"https://github.com/bjorn/tiled/pull/1384.patch","issue_url":"https://api.github.com/repos/bjorn/tiled/issues/1384","number":1384,"state":"open","locked":false,"title":"Up/down buttons in objects dock + pixel coordinates for objects in status bar","user":{"login":"iskolbin","id":3881669,"avatar_url":"https://avatars.githubusercontent.com/u/3881669?v=3","gravatar_id":"","url":"https://api.github.com/users/iskolbin","html_url":"https://github.com/iskolbin","followers_url":"https://api.github.com/users/iskolbin/followers","following_url":"https://api.github.com/users/iskolbin/following{/other_user}","gists_url":"https://api.github.com/users/iskolbin/gists{/gist_id}","starred_url":"https://api.github.com/users/iskolbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iskolbin/subscriptions","organizations_url":"https://api.github.com/users/iskolbin/orgs","repos_url":"https://api.github.com/users/iskolbin/repos","events_url":"https://api.github.com/users/iskolbin/events{/privacy}","received_events_url":"https://api.github.com/users/iskolbin/received_events","type":"User","site_admin":false},"body":"This pull request adds up/down buttons in objects dock for manually changing object index (undo is not implemented, sorry). It also adds object coordinates in status bar in pixels.","created_at":"2016-10-25T13:32:51Z","updated_at":"2016-10-25T20:49:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c22c1288c6e41f4e93795de0cf89abfe6e3c3d0e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bjorn/tiled/pulls/1384/commits","review_comments_url":"https://api.github.com/repos/bjorn/tiled/pulls/1384/comments","review_comment_url":"https://api.github.com/repos/bjorn/tiled/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bjorn/tiled/issues/1384/comments","statuses_url":"https://api.github.com/repos/bjorn/tiled/statuses/0f259aafc506abe930e20e1a95d634099b22996d","head":{"label":"iskolbin:master","ref":"master","sha":"0f259aafc506abe930e20e1a95d634099b22996d","user":{"login":"iskolbin","id":3881669,"avatar_url":"https://avatars.githubusercontent.com/u/3881669?v=3","gravatar_id":"","url":"https://api.github.com/users/iskolbin","html_url":"https://github.com/iskolbin","followers_url":"https://api.github.com/users/iskolbin/followers","following_url":"https://api.github.com/users/iskolbin/following{/other_user}","gists_url":"https://api.github.com/users/iskolbin/gists{/gist_id}","starred_url":"https://api.github.com/users/iskolbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iskolbin/subscriptions","organizations_url":"https://api.github.com/users/iskolbin/orgs","repos_url":"https://api.github.com/users/iskolbin/repos","events_url":"https://api.github.com/users/iskolbin/events{/privacy}","received_events_url":"https://api.github.com/users/iskolbin/received_events","type":"User","site_admin":false},"repo":{"id":70047977,"name":"tiled","full_name":"iskolbin/tiled","owner":{"login":"iskolbin","id":3881669,"avatar_url":"https://avatars.githubusercontent.com/u/3881669?v=3","gravatar_id":"","url":"https://api.github.com/users/iskolbin","html_url":"https://github.com/iskolbin","followers_url":"https://api.github.com/users/iskolbin/followers","following_url":"https://api.github.com/users/iskolbin/following{/other_user}","gists_url":"https://api.github.com/users/iskolbin/gists{/gist_id}","starred_url":"https://api.github.com/users/iskolbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iskolbin/subscriptions","organizations_url":"https://api.github.com/users/iskolbin/orgs","repos_url":"https://api.github.com/users/iskolbin/repos","events_url":"https://api.github.com/users/iskolbin/events{/privacy}","received_events_url":"https://api.github.com/users/iskolbin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iskolbin/tiled","description":"A generic tile map editor","fork":true,"url":"https://api.github.com/repos/iskolbin/tiled","forks_url":"https://api.github.com/repos/iskolbin/tiled/forks","keys_url":"https://api.github.com/repos/iskolbin/tiled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iskolbin/tiled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iskolbin/tiled/teams","hooks_url":"https://api.github.com/repos/iskolbin/tiled/hooks","issue_events_url":"https://api.github.com/repos/iskolbin/tiled/issues/events{/number}","events_url":"https://api.github.com/repos/iskolbin/tiled/events","assignees_url":"https://api.github.com/repos/iskolbin/tiled/assignees{/user}","branches_url":"https://api.github.com/repos/iskolbin/tiled/branches{/branch}","tags_url":"https://api.github.com/repos/iskolbin/tiled/tags","blobs_url":"https://api.github.com/repos/iskolbin/tiled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iskolbin/tiled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iskolbin/tiled/git/refs{/sha}","trees_url":"https://api.github.com/repos/iskolbin/tiled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iskolbin/tiled/statuses/{sha}","languages_url":"https://api.github.com/repos/iskolbin/tiled/languages","stargazers_url":"https://api.github.com/repos/iskolbin/tiled/stargazers","contributors_url":"https://api.github.com/repos/iskolbin/tiled/contributors","subscribers_url":"https://api.github.com/repos/iskolbin/tiled/subscribers","subscription_url":"https://api.github.com/repos/iskolbin/tiled/subscription","commits_url":"https://api.github.com/repos/iskolbin/tiled/commits{/sha}","git_commits_url":"https://api.github.com/repos/iskolbin/tiled/git/commits{/sha}","comments_url":"https://api.github.com/repos/iskolbin/tiled/comments{/number}","issue_comment_url":"https://api.github.com/repos/iskolbin/tiled/issues/comments{/number}","contents_url":"https://api.github.com/repos/iskolbin/tiled/contents/{+path}","compare_url":"https://api.github.com/repos/iskolbin/tiled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iskolbin/tiled/merges","archive_url":"https://api.github.com/repos/iskolbin/tiled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iskolbin/tiled/downloads","issues_url":"https://api.github.com/repos/iskolbin/tiled/issues{/number}","pulls_url":"https://api.github.com/repos/iskolbin/tiled/pulls{/number}","milestones_url":"https://api.github.com/repos/iskolbin/tiled/milestones{/number}","notifications_url":"https://api.github.com/repos/iskolbin/tiled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iskolbin/tiled/labels{/name}","releases_url":"https://api.github.com/repos/iskolbin/tiled/releases{/id}","deployments_url":"https://api.github.com/repos/iskolbin/tiled/deployments","created_at":"2016-10-05T09:51:07Z","updated_at":"2016-10-25T13:20:47Z","pushed_at":"2016-10-25T13:20:45Z","git_url":"git://github.com/iskolbin/tiled.git","ssh_url":"git@github.com:iskolbin/tiled.git","clone_url":"https://github.com/iskolbin/tiled.git","svn_url":"https://github.com/iskolbin/tiled","homepage":"http://www.mapeditor.org/","size":20705,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"bjorn:master","ref":"master","sha":"fb1839b41d4797c87e5bb7183209c044fe244714","user":{"login":"bjorn","id":531764,"avatar_url":"https://avatars.githubusercontent.com/u/531764?v=3","gravatar_id":"","url":"https://api.github.com/users/bjorn","html_url":"https://github.com/bjorn","followers_url":"https://api.github.com/users/bjorn/followers","following_url":"https://api.github.com/users/bjorn/following{/other_user}","gists_url":"https://api.github.com/users/bjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn/subscriptions","organizations_url":"https://api.github.com/users/bjorn/orgs","repos_url":"https://api.github.com/users/bjorn/repos","events_url":"https://api.github.com/users/bjorn/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn/received_events","type":"User","site_admin":false},"repo":{"id":1418150,"name":"tiled","full_name":"bjorn/tiled","owner":{"login":"bjorn","id":531764,"avatar_url":"https://avatars.githubusercontent.com/u/531764?v=3","gravatar_id":"","url":"https://api.github.com/users/bjorn","html_url":"https://github.com/bjorn","followers_url":"https://api.github.com/users/bjorn/followers","following_url":"https://api.github.com/users/bjorn/following{/other_user}","gists_url":"https://api.github.com/users/bjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn/subscriptions","organizations_url":"https://api.github.com/users/bjorn/orgs","repos_url":"https://api.github.com/users/bjorn/repos","events_url":"https://api.github.com/users/bjorn/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjorn/tiled","description":"A generic tile map editor","fork":false,"url":"https://api.github.com/repos/bjorn/tiled","forks_url":"https://api.github.com/repos/bjorn/tiled/forks","keys_url":"https://api.github.com/repos/bjorn/tiled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjorn/tiled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjorn/tiled/teams","hooks_url":"https://api.github.com/repos/bjorn/tiled/hooks","issue_events_url":"https://api.github.com/repos/bjorn/tiled/issues/events{/number}","events_url":"https://api.github.com/repos/bjorn/tiled/events","assignees_url":"https://api.github.com/repos/bjorn/tiled/assignees{/user}","branches_url":"https://api.github.com/repos/bjorn/tiled/branches{/branch}","tags_url":"https://api.github.com/repos/bjorn/tiled/tags","blobs_url":"https://api.github.com/repos/bjorn/tiled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjorn/tiled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjorn/tiled/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjorn/tiled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjorn/tiled/statuses/{sha}","languages_url":"https://api.github.com/repos/bjorn/tiled/languages","stargazers_url":"https://api.github.com/repos/bjorn/tiled/stargazers","contributors_url":"https://api.github.com/repos/bjorn/tiled/contributors","subscribers_url":"https://api.github.com/repos/bjorn/tiled/subscribers","subscription_url":"https://api.github.com/repos/bjorn/tiled/subscription","commits_url":"https://api.github.com/repos/bjorn/tiled/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjorn/tiled/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjorn/tiled/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjorn/tiled/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjorn/tiled/contents/{+path}","compare_url":"https://api.github.com/repos/bjorn/tiled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjorn/tiled/merges","archive_url":"https://api.github.com/repos/bjorn/tiled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjorn/tiled/downloads","issues_url":"https://api.github.com/repos/bjorn/tiled/issues{/number}","pulls_url":"https://api.github.com/repos/bjorn/tiled/pulls{/number}","milestones_url":"https://api.github.com/repos/bjorn/tiled/milestones{/number}","notifications_url":"https://api.github.com/repos/bjorn/tiled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjorn/tiled/labels{/name}","releases_url":"https://api.github.com/repos/bjorn/tiled/releases{/id}","deployments_url":"https://api.github.com/repos/bjorn/tiled/deployments","created_at":"2011-02-27T15:18:22Z","updated_at":"2016-10-25T04:09:56Z","pushed_at":"2016-10-25T20:09:39Z","git_url":"git://github.com/bjorn/tiled.git","ssh_url":"git@github.com:bjorn/tiled.git","clone_url":"https://github.com/bjorn/tiled.git","svn_url":"https://github.com/bjorn/tiled","homepage":"http://www.mapeditor.org/","size":65749,"stargazers_count":4194,"watchers_count":4194,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":908,"mirror_url":null,"open_issues_count":334,"forks":908,"open_issues":334,"watchers":4194,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1384"},"html":{"href":"https://github.com/bjorn/tiled/pull/1384"},"issue":{"href":"https://api.github.com/repos/bjorn/tiled/issues/1384"},"comments":{"href":"https://api.github.com/repos/bjorn/tiled/issues/1384/comments"},"review_comments":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1384/comments"},"review_comment":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1384/commits"},"statuses":{"href":"https://api.github.com/repos/bjorn/tiled/statuses/0f259aafc506abe930e20e1a95d634099b22996d"}}}}
{"actor":{"display_login":"bjorn"}}