{"action":"created","comment":{"url":"https://api.github.com/repos/qgis/QGIS/pulls/comments/72912431","id":72912431,"diff_hunk":"@@ -33,6 +33,35 @@ class QgsVectorLayer;\n \n \n /** \\ingroup gui\n+ * Holder for the widget type and its configuration.\n+ *\n+ * @note added in QGIS 3.0\n+ */\n+class GUI_EXPORT QgsWidgetSetup\n+{\n+  public:\n+    /**\n+     * Constructor\n+     */\n+    QgsWidgetSetup( const QString& type, const QgsEditorWidgetConfig& config ) : mType( type ), mConfig( config ) {}\n+    QgsWidgetSetup() {}\n+\n+    /**\n+     * @return the widget type to use\n+     */\n+    const QString& type() const { return mType; }","path":"src/gui/editorwidgets/core/qgseditorwidgetregistry.h","position":20,"original_position":20,"commit_id":"65db1c6c969dc11ded81762a68ec3365ccc5c9e6","original_commit_id":"65db1c6c969dc11ded81762a68ec3365ccc5c9e6","user":{"login":"m-kuhn","id":588407,"avatar_url":"https://avatars.githubusercontent.com/u/588407?v=3","gravatar_id":"","url":"https://api.github.com/users/m-kuhn","html_url":"https://github.com/m-kuhn","followers_url":"https://api.github.com/users/m-kuhn/followers","following_url":"https://api.github.com/users/m-kuhn/following{/other_user}","gists_url":"https://api.github.com/users/m-kuhn/gists{/gist_id}","starred_url":"https://api.github.com/users/m-kuhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-kuhn/subscriptions","organizations_url":"https://api.github.com/users/m-kuhn/orgs","repos_url":"https://api.github.com/users/m-kuhn/repos","events_url":"https://api.github.com/users/m-kuhn/events{/privacy}","received_events_url":"https://api.github.com/users/m-kuhn/received_events","type":"User","site_admin":false},"body":"QString is implicitly shared, so it should be returned by value.","created_at":"2016-07-31T22:34:51Z","updated_at":"2016-07-31T22:34:51Z","html_url":"https://github.com/qgis/QGIS/pull/3338#discussion_r72912431","pull_request_url":"https://api.github.com/repos/qgis/QGIS/pulls/3338","_links":{"self":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/comments/72912431"},"html":{"href":"https://github.com/qgis/QGIS/pull/3338#discussion_r72912431"},"pull_request":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/3338"}}},"pull_request":{"url":"https://api.github.com/repos/qgis/QGIS/pulls/3338","id":78968937,"html_url":"https://github.com/qgis/QGIS/pull/3338","diff_url":"https://github.com/qgis/QGIS/pull/3338.diff","patch_url":"https://github.com/qgis/QGIS/pull/3338.patch","issue_url":"https://api.github.com/repos/qgis/QGIS/issues/3338","number":3338,"state":"open","locked":false,"title":"Smarter default edit widgets with plugins to pick them","user":{"login":"pvalsecc","id":1180608,"avatar_url":"https://avatars.githubusercontent.com/u/1180608?v=3","gravatar_id":"","url":"https://api.github.com/users/pvalsecc","html_url":"https://github.com/pvalsecc","followers_url":"https://api.github.com/users/pvalsecc/followers","following_url":"https://api.github.com/users/pvalsecc/following{/other_user}","gists_url":"https://api.github.com/users/pvalsecc/gists{/gist_id}","starred_url":"https://api.github.com/users/pvalsecc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvalsecc/subscriptions","organizations_url":"https://api.github.com/users/pvalsecc/orgs","repos_url":"https://api.github.com/users/pvalsecc/repos","events_url":"https://api.github.com/users/pvalsecc/events{/privacy}","received_events_url":"https://api.github.com/users/pvalsecc/received_events","type":"User","site_admin":false},"body":"Now the widgets factories can give a score on how good they could handle\r\na widget.\r\n\r\nAdditionaly, plugins can be added to choose a widget factory in function\r\nof an external information.\r\n\r\nI took the opportunity to remove a few deprecated method in relation to\r\nthis.","created_at":"2016-07-27T05:55:41Z","updated_at":"2016-07-31T22:34:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"346f444a55d3379a5b328bf4afb6fc0e21fe514b","assignee":{"login":"3nids","id":127259,"avatar_url":"https://avatars.githubusercontent.com/u/127259?v=3","gravatar_id":"","url":"https://api.github.com/users/3nids","html_url":"https://github.com/3nids","followers_url":"https://api.github.com/users/3nids/followers","following_url":"https://api.github.com/users/3nids/following{/other_user}","gists_url":"https://api.github.com/users/3nids/gists{/gist_id}","starred_url":"https://api.github.com/users/3nids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3nids/subscriptions","organizations_url":"https://api.github.com/users/3nids/orgs","repos_url":"https://api.github.com/users/3nids/repos","events_url":"https://api.github.com/users/3nids/events{/privacy}","received_events_url":"https://api.github.com/users/3nids/received_events","type":"User","site_admin":false},"assignees":[{"login":"3nids","id":127259,"avatar_url":"https://avatars.githubusercontent.com/u/127259?v=3","gravatar_id":"","url":"https://api.github.com/users/3nids","html_url":"https://github.com/3nids","followers_url":"https://api.github.com/users/3nids/followers","following_url":"https://api.github.com/users/3nids/following{/other_user}","gists_url":"https://api.github.com/users/3nids/gists{/gist_id}","starred_url":"https://api.github.com/users/3nids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3nids/subscriptions","organizations_url":"https://api.github.com/users/3nids/orgs","repos_url":"https://api.github.com/users/3nids/repos","events_url":"https://api.github.com/users/3nids/events{/privacy}","received_events_url":"https://api.github.com/users/3nids/received_events","type":"User","site_admin":false},{"login":"m-kuhn","id":588407,"avatar_url":"https://avatars.githubusercontent.com/u/588407?v=3","gravatar_id":"","url":"https://api.github.com/users/m-kuhn","html_url":"https://github.com/m-kuhn","followers_url":"https://api.github.com/users/m-kuhn/followers","following_url":"https://api.github.com/users/m-kuhn/following{/other_user}","gists_url":"https://api.github.com/users/m-kuhn/gists{/gist_id}","starred_url":"https://api.github.com/users/m-kuhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-kuhn/subscriptions","organizations_url":"https://api.github.com/users/m-kuhn/orgs","repos_url":"https://api.github.com/users/m-kuhn/repos","events_url":"https://api.github.com/users/m-kuhn/events{/privacy}","received_events_url":"https://api.github.com/users/m-kuhn/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/qgis/QGIS/pulls/3338/commits","review_comments_url":"https://api.github.com/repos/qgis/QGIS/pulls/3338/comments","review_comment_url":"https://api.github.com/repos/qgis/QGIS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qgis/QGIS/issues/3338/comments","statuses_url":"https://api.github.com/repos/qgis/QGIS/statuses/65db1c6c969dc11ded81762a68ec3365ccc5c9e6","head":{"label":"pvalsecc:editor_widgets_selection","ref":"editor_widgets_selection","sha":"65db1c6c969dc11ded81762a68ec3365ccc5c9e6","user":{"login":"pvalsecc","id":1180608,"avatar_url":"https://avatars.githubusercontent.com/u/1180608?v=3","gravatar_id":"","url":"https://api.github.com/users/pvalsecc","html_url":"https://github.com/pvalsecc","followers_url":"https://api.github.com/users/pvalsecc/followers","following_url":"https://api.github.com/users/pvalsecc/following{/other_user}","gists_url":"https://api.github.com/users/pvalsecc/gists{/gist_id}","starred_url":"https://api.github.com/users/pvalsecc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvalsecc/subscriptions","organizations_url":"https://api.github.com/users/pvalsecc/orgs","repos_url":"https://api.github.com/users/pvalsecc/repos","events_url":"https://api.github.com/users/pvalsecc/events{/privacy}","received_events_url":"https://api.github.com/users/pvalsecc/received_events","type":"User","site_admin":false},"repo":{"id":49560586,"name":"QGIS","full_name":"pvalsecc/QGIS","owner":{"login":"pvalsecc","id":1180608,"avatar_url":"https://avatars.githubusercontent.com/u/1180608?v=3","gravatar_id":"","url":"https://api.github.com/users/pvalsecc","html_url":"https://github.com/pvalsecc","followers_url":"https://api.github.com/users/pvalsecc/followers","following_url":"https://api.github.com/users/pvalsecc/following{/other_user}","gists_url":"https://api.github.com/users/pvalsecc/gists{/gist_id}","starred_url":"https://api.github.com/users/pvalsecc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvalsecc/subscriptions","organizations_url":"https://api.github.com/users/pvalsecc/orgs","repos_url":"https://api.github.com/users/pvalsecc/repos","events_url":"https://api.github.com/users/pvalsecc/events{/privacy}","received_events_url":"https://api.github.com/users/pvalsecc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pvalsecc/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/pvalsecc/QGIS","forks_url":"https://api.github.com/repos/pvalsecc/QGIS/forks","keys_url":"https://api.github.com/repos/pvalsecc/QGIS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pvalsecc/QGIS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pvalsecc/QGIS/teams","hooks_url":"https://api.github.com/repos/pvalsecc/QGIS/hooks","issue_events_url":"https://api.github.com/repos/pvalsecc/QGIS/issues/events{/number}","events_url":"https://api.github.com/repos/pvalsecc/QGIS/events","assignees_url":"https://api.github.com/repos/pvalsecc/QGIS/assignees{/user}","branches_url":"https://api.github.com/repos/pvalsecc/QGIS/branches{/branch}","tags_url":"https://api.github.com/repos/pvalsecc/QGIS/tags","blobs_url":"https://api.github.com/repos/pvalsecc/QGIS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pvalsecc/QGIS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pvalsecc/QGIS/git/refs{/sha}","trees_url":"https://api.github.com/repos/pvalsecc/QGIS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pvalsecc/QGIS/statuses/{sha}","languages_url":"https://api.github.com/repos/pvalsecc/QGIS/languages","stargazers_url":"https://api.github.com/repos/pvalsecc/QGIS/stargazers","contributors_url":"https://api.github.com/repos/pvalsecc/QGIS/contributors","subscribers_url":"https://api.github.com/repos/pvalsecc/QGIS/subscribers","subscription_url":"https://api.github.com/repos/pvalsecc/QGIS/subscription","commits_url":"https://api.github.com/repos/pvalsecc/QGIS/commits{/sha}","git_commits_url":"https://api.github.com/repos/pvalsecc/QGIS/git/commits{/sha}","comments_url":"https://api.github.com/repos/pvalsecc/QGIS/comments{/number}","issue_comment_url":"https://api.github.com/repos/pvalsecc/QGIS/issues/comments{/number}","contents_url":"https://api.github.com/repos/pvalsecc/QGIS/contents/{+path}","compare_url":"https://api.github.com/repos/pvalsecc/QGIS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pvalsecc/QGIS/merges","archive_url":"https://api.github.com/repos/pvalsecc/QGIS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pvalsecc/QGIS/downloads","issues_url":"https://api.github.com/repos/pvalsecc/QGIS/issues{/number}","pulls_url":"https://api.github.com/repos/pvalsecc/QGIS/pulls{/number}","milestones_url":"https://api.github.com/repos/pvalsecc/QGIS/milestones{/number}","notifications_url":"https://api.github.com/repos/pvalsecc/QGIS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pvalsecc/QGIS/labels{/name}","releases_url":"https://api.github.com/repos/pvalsecc/QGIS/releases{/id}","deployments_url":"https://api.github.com/repos/pvalsecc/QGIS/deployments","created_at":"2016-01-13T08:32:57Z","updated_at":"2016-07-31T18:22:39Z","pushed_at":"2016-07-27T10:04:21Z","git_url":"git://github.com/pvalsecc/QGIS.git","ssh_url":"git@github.com:pvalsecc/QGIS.git","clone_url":"https://github.com/pvalsecc/QGIS.git","svn_url":"https://github.com/pvalsecc/QGIS","homepage":"http://qgis.org","size":1188470,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"qgis:master","ref":"master","sha":"ee09131df8ef3287f7f0ce2735ccebe7e06ea7d6","user":{"login":"qgis","id":483444,"avatar_url":"https://avatars.githubusercontent.com/u/483444?v=3","gravatar_id":"","url":"https://api.github.com/users/qgis","html_url":"https://github.com/qgis","followers_url":"https://api.github.com/users/qgis/followers","following_url":"https://api.github.com/users/qgis/following{/other_user}","gists_url":"https://api.github.com/users/qgis/gists{/gist_id}","starred_url":"https://api.github.com/users/qgis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qgis/subscriptions","organizations_url":"https://api.github.com/users/qgis/orgs","repos_url":"https://api.github.com/users/qgis/repos","events_url":"https://api.github.com/users/qgis/events{/privacy}","received_events_url":"https://api.github.com/users/qgis/received_events","type":"Organization","site_admin":false},"repo":{"id":1690480,"name":"QGIS","full_name":"qgis/QGIS","owner":{"login":"qgis","id":483444,"avatar_url":"https://avatars.githubusercontent.com/u/483444?v=3","gravatar_id":"","url":"https://api.github.com/users/qgis","html_url":"https://github.com/qgis","followers_url":"https://api.github.com/users/qgis/followers","following_url":"https://api.github.com/users/qgis/following{/other_user}","gists_url":"https://api.github.com/users/qgis/gists{/gist_id}","starred_url":"https://api.github.com/users/qgis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qgis/subscriptions","organizations_url":"https://api.github.com/users/qgis/orgs","repos_url":"https://api.github.com/users/qgis/repos","events_url":"https://api.github.com/users/qgis/events{/privacy}","received_events_url":"https://api.github.com/users/qgis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qgis/QGIS","description":"QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)","fork":false,"url":"https://api.github.com/repos/qgis/QGIS","forks_url":"https://api.github.com/repos/qgis/QGIS/forks","keys_url":"https://api.github.com/repos/qgis/QGIS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qgis/QGIS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qgis/QGIS/teams","hooks_url":"https://api.github.com/repos/qgis/QGIS/hooks","issue_events_url":"https://api.github.com/repos/qgis/QGIS/issues/events{/number}","events_url":"https://api.github.com/repos/qgis/QGIS/events","assignees_url":"https://api.github.com/repos/qgis/QGIS/assignees{/user}","branches_url":"https://api.github.com/repos/qgis/QGIS/branches{/branch}","tags_url":"https://api.github.com/repos/qgis/QGIS/tags","blobs_url":"https://api.github.com/repos/qgis/QGIS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qgis/QGIS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qgis/QGIS/git/refs{/sha}","trees_url":"https://api.github.com/repos/qgis/QGIS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qgis/QGIS/statuses/{sha}","languages_url":"https://api.github.com/repos/qgis/QGIS/languages","stargazers_url":"https://api.github.com/repos/qgis/QGIS/stargazers","contributors_url":"https://api.github.com/repos/qgis/QGIS/contributors","subscribers_url":"https://api.github.com/repos/qgis/QGIS/subscribers","subscription_url":"https://api.github.com/repos/qgis/QGIS/subscription","commits_url":"https://api.github.com/repos/qgis/QGIS/commits{/sha}","git_commits_url":"https://api.github.com/repos/qgis/QGIS/git/commits{/sha}","comments_url":"https://api.github.com/repos/qgis/QGIS/comments{/number}","issue_comment_url":"https://api.github.com/repos/qgis/QGIS/issues/comments{/number}","contents_url":"https://api.github.com/repos/qgis/QGIS/contents/{+path}","compare_url":"https://api.github.com/repos/qgis/QGIS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qgis/QGIS/merges","archive_url":"https://api.github.com/repos/qgis/QGIS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qgis/QGIS/downloads","issues_url":"https://api.github.com/repos/qgis/QGIS/issues{/number}","pulls_url":"https://api.github.com/repos/qgis/QGIS/pulls{/number}","milestones_url":"https://api.github.com/repos/qgis/QGIS/milestones{/number}","notifications_url":"https://api.github.com/repos/qgis/QGIS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qgis/QGIS/labels{/name}","releases_url":"https://api.github.com/repos/qgis/QGIS/releases{/id}","deployments_url":"https://api.github.com/repos/qgis/QGIS/deployments","created_at":"2011-05-02T08:06:26Z","updated_at":"2016-07-31T18:26:00Z","pushed_at":"2016-07-31T22:09:25Z","git_url":"git://github.com/qgis/QGIS.git","ssh_url":"git@github.com:qgis/QGIS.git","clone_url":"https://github.com/qgis/QGIS.git","svn_url":"https://github.com/qgis/QGIS","homepage":"http://qgis.org","size":1251717,"stargazers_count":1052,"watchers_count":1052,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":879,"mirror_url":null,"open_issues_count":58,"forks":879,"open_issues":58,"watchers":1052,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/3338"},"html":{"href":"https://github.com/qgis/QGIS/pull/3338"},"issue":{"href":"https://api.github.com/repos/qgis/QGIS/issues/3338"},"comments":{"href":"https://api.github.com/repos/qgis/QGIS/issues/3338/comments"},"review_comments":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/3338/comments"},"review_comment":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qgis/QGIS/pulls/3338/commits"},"statuses":{"href":"https://api.github.com/repos/qgis/QGIS/statuses/65db1c6c969dc11ded81762a68ec3365ccc5c9e6"}}}}
{"actor":{"display_login":"m-kuhn"}}