{"action":"created","comment":{"url":"https://api.github.com/repos/mujx/nheko/pulls/comments/158609417","pull_request_review_id":85448156,"id":158609417,"diff_hunk":"@@ -101,6 +105,39 @@ FilteredTextEdit::keyPressEvent(QKeyEvent *event)\n         }\n }\n \n+bool\n+FilteredTextEdit::canInsertFromMimeData(const QMimeData *source) const\n+{\n+        return (source->hasImage() || source->hasText() ||\n+                QTextEdit::canInsertFromMimeData(source));\n+}\n+\n+void\n+FilteredTextEdit::insertFromMimeData(const QMimeData *source)\n+{\n+        if (source->hasImage()) {\n+                QPixmap const img = qvariant_cast<QPixmap>(source->imageData());\n+                previewDialog_    = new dialogs::PreviewImageOverlay{img, this};","path":"src/TextInputWidget.cc","position":38,"original_position":38,"commit_id":"924324daad7d42a513577ccc3f07d2a692acab05","original_commit_id":"924324daad7d42a513577ccc3f07d2a692acab05","user":{"login":"Ralith","id":104558,"avatar_url":"https://avatars2.githubusercontent.com/u/104558?v=4","gravatar_id":"","url":"https://api.github.com/users/Ralith","html_url":"https://github.com/Ralith","followers_url":"https://api.github.com/users/Ralith/followers","following_url":"https://api.github.com/users/Ralith/following{/other_user}","gists_url":"https://api.github.com/users/Ralith/gists{/gist_id}","starred_url":"https://api.github.com/users/Ralith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ralith/subscriptions","organizations_url":"https://api.github.com/users/Ralith/orgs","repos_url":"https://api.github.com/users/Ralith/repos","events_url":"https://api.github.com/users/Ralith/events{/privacy}","received_events_url":"https://api.github.com/users/Ralith/received_events","type":"User","site_admin":false},"body":"When does the `PreviewImageOverlay` you create here get deleted? Why does it need to be dynamically allocated at all?","created_at":"2017-12-24T20:41:42Z","updated_at":"2017-12-24T20:52:13Z","html_url":"https://github.com/mujx/nheko/pull/180#discussion_r158609417","pull_request_url":"https://api.github.com/repos/mujx/nheko/pulls/180","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mujx/nheko/pulls/comments/158609417"},"html":{"href":"https://github.com/mujx/nheko/pull/180#discussion_r158609417"},"pull_request":{"href":"https://api.github.com/repos/mujx/nheko/pulls/180"}}},"pull_request":{"url":"https://api.github.com/repos/mujx/nheko/pulls/180","id":160008376,"html_url":"https://github.com/mujx/nheko/pull/180","diff_url":"https://github.com/mujx/nheko/pull/180.diff","patch_url":"https://github.com/mujx/nheko/pull/180.patch","issue_url":"https://api.github.com/repos/mujx/nheko/issues/180","number":180,"state":"open","locked":false,"title":"[Updated] Implements #132: Pasting images into room","user":{"login":"christarazi","id":3885308,"avatar_url":"https://avatars2.githubusercontent.com/u/3885308?v=4","gravatar_id":"","url":"https://api.github.com/users/christarazi","html_url":"https://github.com/christarazi","followers_url":"https://api.github.com/users/christarazi/followers","following_url":"https://api.github.com/users/christarazi/following{/other_user}","gists_url":"https://api.github.com/users/christarazi/gists{/gist_id}","starred_url":"https://api.github.com/users/christarazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christarazi/subscriptions","organizations_url":"https://api.github.com/users/christarazi/orgs","repos_url":"https://api.github.com/users/christarazi/repos","events_url":"https://api.github.com/users/christarazi/events{/privacy}","received_events_url":"https://api.github.com/users/christarazi/received_events","type":"User","site_admin":false},"body":"This is an update to PR #138 ","created_at":"2017-12-24T19:10:58Z","updated_at":"2017-12-24T20:52:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7264e84f1f5e2457ca2fede62f59691d1fc10a2","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/mujx/nheko/pulls/180/commits","review_comments_url":"https://api.github.com/repos/mujx/nheko/pulls/180/comments","review_comment_url":"https://api.github.com/repos/mujx/nheko/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mujx/nheko/issues/180/comments","statuses_url":"https://api.github.com/repos/mujx/nheko/statuses/924324daad7d42a513577ccc3f07d2a692acab05","head":{"label":"christarazi:iodev-pasteimg","ref":"iodev-pasteimg","sha":"924324daad7d42a513577ccc3f07d2a692acab05","user":{"login":"christarazi","id":3885308,"avatar_url":"https://avatars2.githubusercontent.com/u/3885308?v=4","gravatar_id":"","url":"https://api.github.com/users/christarazi","html_url":"https://github.com/christarazi","followers_url":"https://api.github.com/users/christarazi/followers","following_url":"https://api.github.com/users/christarazi/following{/other_user}","gists_url":"https://api.github.com/users/christarazi/gists{/gist_id}","starred_url":"https://api.github.com/users/christarazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christarazi/subscriptions","organizations_url":"https://api.github.com/users/christarazi/orgs","repos_url":"https://api.github.com/users/christarazi/repos","events_url":"https://api.github.com/users/christarazi/events{/privacy}","received_events_url":"https://api.github.com/users/christarazi/received_events","type":"User","site_admin":false},"repo":{"id":112035485,"name":"nheko","full_name":"christarazi/nheko","owner":{"login":"christarazi","id":3885308,"avatar_url":"https://avatars2.githubusercontent.com/u/3885308?v=4","gravatar_id":"","url":"https://api.github.com/users/christarazi","html_url":"https://github.com/christarazi","followers_url":"https://api.github.com/users/christarazi/followers","following_url":"https://api.github.com/users/christarazi/following{/other_user}","gists_url":"https://api.github.com/users/christarazi/gists{/gist_id}","starred_url":"https://api.github.com/users/christarazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christarazi/subscriptions","organizations_url":"https://api.github.com/users/christarazi/orgs","repos_url":"https://api.github.com/users/christarazi/repos","events_url":"https://api.github.com/users/christarazi/events{/privacy}","received_events_url":"https://api.github.com/users/christarazi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/christarazi/nheko","description":"Desktop client for the Matrix protocol","fork":true,"url":"https://api.github.com/repos/christarazi/nheko","forks_url":"https://api.github.com/repos/christarazi/nheko/forks","keys_url":"https://api.github.com/repos/christarazi/nheko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/christarazi/nheko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/christarazi/nheko/teams","hooks_url":"https://api.github.com/repos/christarazi/nheko/hooks","issue_events_url":"https://api.github.com/repos/christarazi/nheko/issues/events{/number}","events_url":"https://api.github.com/repos/christarazi/nheko/events","assignees_url":"https://api.github.com/repos/christarazi/nheko/assignees{/user}","branches_url":"https://api.github.com/repos/christarazi/nheko/branches{/branch}","tags_url":"https://api.github.com/repos/christarazi/nheko/tags","blobs_url":"https://api.github.com/repos/christarazi/nheko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/christarazi/nheko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/christarazi/nheko/git/refs{/sha}","trees_url":"https://api.github.com/repos/christarazi/nheko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/christarazi/nheko/statuses/{sha}","languages_url":"https://api.github.com/repos/christarazi/nheko/languages","stargazers_url":"https://api.github.com/repos/christarazi/nheko/stargazers","contributors_url":"https://api.github.com/repos/christarazi/nheko/contributors","subscribers_url":"https://api.github.com/repos/christarazi/nheko/subscribers","subscription_url":"https://api.github.com/repos/christarazi/nheko/subscription","commits_url":"https://api.github.com/repos/christarazi/nheko/commits{/sha}","git_commits_url":"https://api.github.com/repos/christarazi/nheko/git/commits{/sha}","comments_url":"https://api.github.com/repos/christarazi/nheko/comments{/number}","issue_comment_url":"https://api.github.com/repos/christarazi/nheko/issues/comments{/number}","contents_url":"https://api.github.com/repos/christarazi/nheko/contents/{+path}","compare_url":"https://api.github.com/repos/christarazi/nheko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/christarazi/nheko/merges","archive_url":"https://api.github.com/repos/christarazi/nheko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/christarazi/nheko/downloads","issues_url":"https://api.github.com/repos/christarazi/nheko/issues{/number}","pulls_url":"https://api.github.com/repos/christarazi/nheko/pulls{/number}","milestones_url":"https://api.github.com/repos/christarazi/nheko/milestones{/number}","notifications_url":"https://api.github.com/repos/christarazi/nheko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/christarazi/nheko/labels{/name}","releases_url":"https://api.github.com/repos/christarazi/nheko/releases{/id}","deployments_url":"https://api.github.com/repos/christarazi/nheko/deployments","created_at":"2017-11-25T21:25:21Z","updated_at":"2017-11-25T21:25:23Z","pushed_at":"2017-12-24T19:07:58Z","git_url":"git://github.com/christarazi/nheko.git","ssh_url":"git@github.com:christarazi/nheko.git","clone_url":"https://github.com/christarazi/nheko.git","svn_url":"https://github.com/christarazi/nheko","homepage":"","size":4586,"stargazers_count":0,"watchers_count":0,"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":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mujx:master","ref":"master","sha":"6835a97b15f642829ffe168464aeb1eae8f7b6a9","user":{"login":"mujx","id":6430350,"avatar_url":"https://avatars1.githubusercontent.com/u/6430350?v=4","gravatar_id":"","url":"https://api.github.com/users/mujx","html_url":"https://github.com/mujx","followers_url":"https://api.github.com/users/mujx/followers","following_url":"https://api.github.com/users/mujx/following{/other_user}","gists_url":"https://api.github.com/users/mujx/gists{/gist_id}","starred_url":"https://api.github.com/users/mujx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mujx/subscriptions","organizations_url":"https://api.github.com/users/mujx/orgs","repos_url":"https://api.github.com/users/mujx/repos","events_url":"https://api.github.com/users/mujx/events{/privacy}","received_events_url":"https://api.github.com/users/mujx/received_events","type":"User","site_admin":false},"repo":{"id":87364100,"name":"nheko","full_name":"mujx/nheko","owner":{"login":"mujx","id":6430350,"avatar_url":"https://avatars1.githubusercontent.com/u/6430350?v=4","gravatar_id":"","url":"https://api.github.com/users/mujx","html_url":"https://github.com/mujx","followers_url":"https://api.github.com/users/mujx/followers","following_url":"https://api.github.com/users/mujx/following{/other_user}","gists_url":"https://api.github.com/users/mujx/gists{/gist_id}","starred_url":"https://api.github.com/users/mujx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mujx/subscriptions","organizations_url":"https://api.github.com/users/mujx/orgs","repos_url":"https://api.github.com/users/mujx/repos","events_url":"https://api.github.com/users/mujx/events{/privacy}","received_events_url":"https://api.github.com/users/mujx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mujx/nheko","description":"Desktop client for the Matrix protocol","fork":false,"url":"https://api.github.com/repos/mujx/nheko","forks_url":"https://api.github.com/repos/mujx/nheko/forks","keys_url":"https://api.github.com/repos/mujx/nheko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mujx/nheko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mujx/nheko/teams","hooks_url":"https://api.github.com/repos/mujx/nheko/hooks","issue_events_url":"https://api.github.com/repos/mujx/nheko/issues/events{/number}","events_url":"https://api.github.com/repos/mujx/nheko/events","assignees_url":"https://api.github.com/repos/mujx/nheko/assignees{/user}","branches_url":"https://api.github.com/repos/mujx/nheko/branches{/branch}","tags_url":"https://api.github.com/repos/mujx/nheko/tags","blobs_url":"https://api.github.com/repos/mujx/nheko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mujx/nheko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mujx/nheko/git/refs{/sha}","trees_url":"https://api.github.com/repos/mujx/nheko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mujx/nheko/statuses/{sha}","languages_url":"https://api.github.com/repos/mujx/nheko/languages","stargazers_url":"https://api.github.com/repos/mujx/nheko/stargazers","contributors_url":"https://api.github.com/repos/mujx/nheko/contributors","subscribers_url":"https://api.github.com/repos/mujx/nheko/subscribers","subscription_url":"https://api.github.com/repos/mujx/nheko/subscription","commits_url":"https://api.github.com/repos/mujx/nheko/commits{/sha}","git_commits_url":"https://api.github.com/repos/mujx/nheko/git/commits{/sha}","comments_url":"https://api.github.com/repos/mujx/nheko/comments{/number}","issue_comment_url":"https://api.github.com/repos/mujx/nheko/issues/comments{/number}","contents_url":"https://api.github.com/repos/mujx/nheko/contents/{+path}","compare_url":"https://api.github.com/repos/mujx/nheko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mujx/nheko/merges","archive_url":"https://api.github.com/repos/mujx/nheko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mujx/nheko/downloads","issues_url":"https://api.github.com/repos/mujx/nheko/issues{/number}","pulls_url":"https://api.github.com/repos/mujx/nheko/pulls{/number}","milestones_url":"https://api.github.com/repos/mujx/nheko/milestones{/number}","notifications_url":"https://api.github.com/repos/mujx/nheko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mujx/nheko/labels{/name}","releases_url":"https://api.github.com/repos/mujx/nheko/releases{/id}","deployments_url":"https://api.github.com/repos/mujx/nheko/deployments","created_at":"2017-04-05T23:01:24Z","updated_at":"2017-12-23T03:29:44Z","pushed_at":"2017-12-24T19:10:59Z","git_url":"git://github.com/mujx/nheko.git","ssh_url":"git@github.com:mujx/nheko.git","clone_url":"https://github.com/mujx/nheko.git","svn_url":"https://github.com/mujx/nheko","homepage":"","size":4558,"stargazers_count":126,"watchers_count":126,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":24,"open_issues":51,"watchers":126,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mujx/nheko/pulls/180"},"html":{"href":"https://github.com/mujx/nheko/pull/180"},"issue":{"href":"https://api.github.com/repos/mujx/nheko/issues/180"},"comments":{"href":"https://api.github.com/repos/mujx/nheko/issues/180/comments"},"review_comments":{"href":"https://api.github.com/repos/mujx/nheko/pulls/180/comments"},"review_comment":{"href":"https://api.github.com/repos/mujx/nheko/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mujx/nheko/pulls/180/commits"},"statuses":{"href":"https://api.github.com/repos/mujx/nheko/statuses/924324daad7d42a513577ccc3f07d2a692acab05"}},"author_association":"NONE"}}
{"actor":{"display_login":"Ralith"}}