{"action":"created","comment":{"url":"https://api.github.com/repos/c42f/displaz/pulls/comments/37701673","id":37701673,"diff_hunk":"@@ -0,0 +1,35 @@\n+// Copyright 2015, Christopher J. Foster and the other displaz contributors.\n+// Use of this code is governed by the BSD-style license found in LICENSE.txt\n+\n+#ifndef QT_MAXIMISE_H_INCLUDED\n+#define QT_MAXIMISE_H_INCLUDED\n+\n+#include <QAction>\n+#include <QMainWindow>\n+\n+class QActionMaximise : public QAction\n+{\n+    Q_OBJECT\n+\n+    public:\n+        QActionMaximise(QMainWindow* mainWindow = 0) : QAction(tr(\"Maximise\"),mainWindow), m_mainWindow(mainWindow)\n+        {\n+            setShortcut(Qt::Key_F11);\n+            connect(this, SIGNAL(triggered(bool)), this, SLOT(handleTriggered(bool)));\n+        }\n+\n+    public slots:\n+        void handleTriggered(bool checked)\n+        {\n+            const bool maximised = m_mainWindow->windowState()&Qt::WindowMaximized;\n+            if (maximised)\n+                m_mainWindow->showNormal();\n+            else\n+                m_mainWindow->showMaximized();\n+        }","path":"src/qtmaximise.h","position":29,"original_position":29,"commit_id":"35c9c0ebb289c5726f103985822aeface33e63b5","original_commit_id":"f6730ba9991521bafa95aa37a5c88998df7778fe","user":{"login":"c42f","id":601473,"avatar_url":"https://avatars.githubusercontent.com/u/601473?v=3","gravatar_id":"","url":"https://api.github.com/users/c42f","html_url":"https://github.com/c42f","followers_url":"https://api.github.com/users/c42f/followers","following_url":"https://api.github.com/users/c42f/following{/other_user}","gists_url":"https://api.github.com/users/c42f/gists{/gist_id}","starred_url":"https://api.github.com/users/c42f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c42f/subscriptions","organizations_url":"https://api.github.com/users/c42f/orgs","repos_url":"https://api.github.com/users/c42f/repos","events_url":"https://api.github.com/users/c42f/events{/privacy}","received_events_url":"https://api.github.com/users/c42f/received_events","type":"User","site_admin":false},"body":"I could certainly be wrong about win+↑, I just looked it up on the web and assumed it actually worked ;-)","created_at":"2015-08-23T01:35:35Z","updated_at":"2015-08-23T01:35:35Z","html_url":"https://github.com/c42f/displaz/pull/73#discussion_r37701673","pull_request_url":"https://api.github.com/repos/c42f/displaz/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/c42f/displaz/pulls/comments/37701673"},"html":{"href":"https://github.com/c42f/displaz/pull/73#discussion_r37701673"},"pull_request":{"href":"https://api.github.com/repos/c42f/displaz/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/c42f/displaz/pulls/73","id":42899103,"html_url":"https://github.com/c42f/displaz/pull/73","diff_url":"https://github.com/c42f/displaz/pull/73.diff","patch_url":"https://github.com/c42f/displaz/pull/73.patch","issue_url":"https://api.github.com/repos/c42f/displaz/issues/73","number":73,"state":"open","locked":false,"title":"Miscellaneous minor fixups","user":{"login":"nigels-com","id":545677,"avatar_url":"https://avatars.githubusercontent.com/u/545677?v=3","gravatar_id":"","url":"https://api.github.com/users/nigels-com","html_url":"https://github.com/nigels-com","followers_url":"https://api.github.com/users/nigels-com/followers","following_url":"https://api.github.com/users/nigels-com/following{/other_user}","gists_url":"https://api.github.com/users/nigels-com/gists{/gist_id}","starred_url":"https://api.github.com/users/nigels-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nigels-com/subscriptions","organizations_url":"https://api.github.com/users/nigels-com/orgs","repos_url":"https://api.github.com/users/nigels-com/repos","events_url":"https://api.github.com/users/nigels-com/events{/privacy}","received_events_url":"https://api.github.com/users/nigels-com/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-20T07:26:56Z","updated_at":"2015-08-23T01:35:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82a430e2ba43332bde30d6d30128e9d3c5918a7c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/c42f/displaz/pulls/73/commits","review_comments_url":"https://api.github.com/repos/c42f/displaz/pulls/73/comments","review_comment_url":"https://api.github.com/repos/c42f/displaz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/c42f/displaz/issues/73/comments","statuses_url":"https://api.github.com/repos/c42f/displaz/statuses/35c9c0ebb289c5726f103985822aeface33e63b5","head":{"label":"nigels-com:merge-fixups","ref":"merge-fixups","sha":"35c9c0ebb289c5726f103985822aeface33e63b5","user":{"login":"nigels-com","id":545677,"avatar_url":"https://avatars.githubusercontent.com/u/545677?v=3","gravatar_id":"","url":"https://api.github.com/users/nigels-com","html_url":"https://github.com/nigels-com","followers_url":"https://api.github.com/users/nigels-com/followers","following_url":"https://api.github.com/users/nigels-com/following{/other_user}","gists_url":"https://api.github.com/users/nigels-com/gists{/gist_id}","starred_url":"https://api.github.com/users/nigels-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nigels-com/subscriptions","organizations_url":"https://api.github.com/users/nigels-com/orgs","repos_url":"https://api.github.com/users/nigels-com/repos","events_url":"https://api.github.com/users/nigels-com/events{/privacy}","received_events_url":"https://api.github.com/users/nigels-com/received_events","type":"User","site_admin":false},"repo":{"id":37041794,"name":"displaz","full_name":"nigels-com/displaz","owner":{"login":"nigels-com","id":545677,"avatar_url":"https://avatars.githubusercontent.com/u/545677?v=3","gravatar_id":"","url":"https://api.github.com/users/nigels-com","html_url":"https://github.com/nigels-com","followers_url":"https://api.github.com/users/nigels-com/followers","following_url":"https://api.github.com/users/nigels-com/following{/other_user}","gists_url":"https://api.github.com/users/nigels-com/gists{/gist_id}","starred_url":"https://api.github.com/users/nigels-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nigels-com/subscriptions","organizations_url":"https://api.github.com/users/nigels-com/orgs","repos_url":"https://api.github.com/users/nigels-com/repos","events_url":"https://api.github.com/users/nigels-com/events{/privacy}","received_events_url":"https://api.github.com/users/nigels-com/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nigels-com/displaz","description":"A las viewer for geospatial lidar data","fork":true,"url":"https://api.github.com/repos/nigels-com/displaz","forks_url":"https://api.github.com/repos/nigels-com/displaz/forks","keys_url":"https://api.github.com/repos/nigels-com/displaz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nigels-com/displaz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nigels-com/displaz/teams","hooks_url":"https://api.github.com/repos/nigels-com/displaz/hooks","issue_events_url":"https://api.github.com/repos/nigels-com/displaz/issues/events{/number}","events_url":"https://api.github.com/repos/nigels-com/displaz/events","assignees_url":"https://api.github.com/repos/nigels-com/displaz/assignees{/user}","branches_url":"https://api.github.com/repos/nigels-com/displaz/branches{/branch}","tags_url":"https://api.github.com/repos/nigels-com/displaz/tags","blobs_url":"https://api.github.com/repos/nigels-com/displaz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nigels-com/displaz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nigels-com/displaz/git/refs{/sha}","trees_url":"https://api.github.com/repos/nigels-com/displaz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nigels-com/displaz/statuses/{sha}","languages_url":"https://api.github.com/repos/nigels-com/displaz/languages","stargazers_url":"https://api.github.com/repos/nigels-com/displaz/stargazers","contributors_url":"https://api.github.com/repos/nigels-com/displaz/contributors","subscribers_url":"https://api.github.com/repos/nigels-com/displaz/subscribers","subscription_url":"https://api.github.com/repos/nigels-com/displaz/subscription","commits_url":"https://api.github.com/repos/nigels-com/displaz/commits{/sha}","git_commits_url":"https://api.github.com/repos/nigels-com/displaz/git/commits{/sha}","comments_url":"https://api.github.com/repos/nigels-com/displaz/comments{/number}","issue_comment_url":"https://api.github.com/repos/nigels-com/displaz/issues/comments{/number}","contents_url":"https://api.github.com/repos/nigels-com/displaz/contents/{+path}","compare_url":"https://api.github.com/repos/nigels-com/displaz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nigels-com/displaz/merges","archive_url":"https://api.github.com/repos/nigels-com/displaz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nigels-com/displaz/downloads","issues_url":"https://api.github.com/repos/nigels-com/displaz/issues{/number}","pulls_url":"https://api.github.com/repos/nigels-com/displaz/pulls{/number}","milestones_url":"https://api.github.com/repos/nigels-com/displaz/milestones{/number}","notifications_url":"https://api.github.com/repos/nigels-com/displaz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nigels-com/displaz/labels{/name}","releases_url":"https://api.github.com/repos/nigels-com/displaz/releases{/id}","created_at":"2015-06-08T02:28:22Z","updated_at":"2015-06-09T01:53:21Z","pushed_at":"2015-08-22T00:33:52Z","git_url":"git://github.com/nigels-com/displaz.git","ssh_url":"git@github.com:nigels-com/displaz.git","clone_url":"https://github.com/nigels-com/displaz.git","svn_url":"https://github.com/nigels-com/displaz","homepage":"http://c42f.github.io/displaz","size":1702,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"c42f:master","ref":"master","sha":"f330e4c9312990f283e2f2c40ae939fc0db42f80","user":{"login":"c42f","id":601473,"avatar_url":"https://avatars.githubusercontent.com/u/601473?v=3","gravatar_id":"","url":"https://api.github.com/users/c42f","html_url":"https://github.com/c42f","followers_url":"https://api.github.com/users/c42f/followers","following_url":"https://api.github.com/users/c42f/following{/other_user}","gists_url":"https://api.github.com/users/c42f/gists{/gist_id}","starred_url":"https://api.github.com/users/c42f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c42f/subscriptions","organizations_url":"https://api.github.com/users/c42f/orgs","repos_url":"https://api.github.com/users/c42f/repos","events_url":"https://api.github.com/users/c42f/events{/privacy}","received_events_url":"https://api.github.com/users/c42f/received_events","type":"User","site_admin":false},"repo":{"id":6596947,"name":"displaz","full_name":"c42f/displaz","owner":{"login":"c42f","id":601473,"avatar_url":"https://avatars.githubusercontent.com/u/601473?v=3","gravatar_id":"","url":"https://api.github.com/users/c42f","html_url":"https://github.com/c42f","followers_url":"https://api.github.com/users/c42f/followers","following_url":"https://api.github.com/users/c42f/following{/other_user}","gists_url":"https://api.github.com/users/c42f/gists{/gist_id}","starred_url":"https://api.github.com/users/c42f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c42f/subscriptions","organizations_url":"https://api.github.com/users/c42f/orgs","repos_url":"https://api.github.com/users/c42f/repos","events_url":"https://api.github.com/users/c42f/events{/privacy}","received_events_url":"https://api.github.com/users/c42f/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/c42f/displaz","description":"A las viewer for geospatial lidar","fork":false,"url":"https://api.github.com/repos/c42f/displaz","forks_url":"https://api.github.com/repos/c42f/displaz/forks","keys_url":"https://api.github.com/repos/c42f/displaz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/c42f/displaz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/c42f/displaz/teams","hooks_url":"https://api.github.com/repos/c42f/displaz/hooks","issue_events_url":"https://api.github.com/repos/c42f/displaz/issues/events{/number}","events_url":"https://api.github.com/repos/c42f/displaz/events","assignees_url":"https://api.github.com/repos/c42f/displaz/assignees{/user}","branches_url":"https://api.github.com/repos/c42f/displaz/branches{/branch}","tags_url":"https://api.github.com/repos/c42f/displaz/tags","blobs_url":"https://api.github.com/repos/c42f/displaz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/c42f/displaz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/c42f/displaz/git/refs{/sha}","trees_url":"https://api.github.com/repos/c42f/displaz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/c42f/displaz/statuses/{sha}","languages_url":"https://api.github.com/repos/c42f/displaz/languages","stargazers_url":"https://api.github.com/repos/c42f/displaz/stargazers","contributors_url":"https://api.github.com/repos/c42f/displaz/contributors","subscribers_url":"https://api.github.com/repos/c42f/displaz/subscribers","subscription_url":"https://api.github.com/repos/c42f/displaz/subscription","commits_url":"https://api.github.com/repos/c42f/displaz/commits{/sha}","git_commits_url":"https://api.github.com/repos/c42f/displaz/git/commits{/sha}","comments_url":"https://api.github.com/repos/c42f/displaz/comments{/number}","issue_comment_url":"https://api.github.com/repos/c42f/displaz/issues/comments{/number}","contents_url":"https://api.github.com/repos/c42f/displaz/contents/{+path}","compare_url":"https://api.github.com/repos/c42f/displaz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/c42f/displaz/merges","archive_url":"https://api.github.com/repos/c42f/displaz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/c42f/displaz/downloads","issues_url":"https://api.github.com/repos/c42f/displaz/issues{/number}","pulls_url":"https://api.github.com/repos/c42f/displaz/pulls{/number}","milestones_url":"https://api.github.com/repos/c42f/displaz/milestones{/number}","notifications_url":"https://api.github.com/repos/c42f/displaz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/c42f/displaz/labels{/name}","releases_url":"https://api.github.com/repos/c42f/displaz/releases{/id}","created_at":"2012-11-08T13:48:08Z","updated_at":"2015-07-05T04:58:16Z","pushed_at":"2015-08-22T14:09:35Z","git_url":"git://github.com/c42f/displaz.git","ssh_url":"git@github.com:c42f/displaz.git","clone_url":"https://github.com/c42f/displaz.git","svn_url":"https://github.com/c42f/displaz","homepage":"http://c42f.github.io/displaz","size":2809,"stargazers_count":19,"watchers_count":19,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":34,"forks":12,"open_issues":34,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/c42f/displaz/pulls/73"},"html":{"href":"https://github.com/c42f/displaz/pull/73"},"issue":{"href":"https://api.github.com/repos/c42f/displaz/issues/73"},"comments":{"href":"https://api.github.com/repos/c42f/displaz/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/c42f/displaz/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/c42f/displaz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/c42f/displaz/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/c42f/displaz/statuses/35c9c0ebb289c5726f103985822aeface33e63b5"}}}}