{"action":"created","comment":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments/55916317","id":55916317,"diff_hunk":"@@ -776,6 +786,7 @@ void options_imp::loadOptions()\n         checkDownloadLimit->setChecked(true);\n         spinDownloadLimit->setEnabled(true);\n         spinDownloadLimit->setValue(intValue);\n+        setLimitStep(spinDownloadLimit, intValue);","path":"src/gui/options_imp.cpp","position":31,"original_position":31,"commit_id":"26418cc171e6218aed5058f3db59f1b42556243a","original_commit_id":"26418cc171e6218aed5058f3db59f1b42556243a","user":{"login":"Chocobo1","id":9395168,"avatar_url":"https://avatars.githubusercontent.com/u/9395168?v=3","gravatar_id":"","url":"https://api.github.com/users/Chocobo1","html_url":"https://github.com/Chocobo1","followers_url":"https://api.github.com/users/Chocobo1/followers","following_url":"https://api.github.com/users/Chocobo1/following{/other_user}","gists_url":"https://api.github.com/users/Chocobo1/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocobo1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocobo1/subscriptions","organizations_url":"https://api.github.com/users/Chocobo1/orgs","repos_url":"https://api.github.com/users/Chocobo1/repos","events_url":"https://api.github.com/users/Chocobo1/events{/privacy}","received_events_url":"https://api.github.com/users/Chocobo1/received_events","type":"User","site_admin":false},"body":"why is it needed here?","created_at":"2016-03-12T04:59:51Z","updated_at":"2016-03-12T04:59:51Z","html_url":"https://github.com/qbittorrent/qBittorrent/pull/4943#discussion_r55916317","pull_request_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/4943","_links":{"self":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments/55916317"},"html":{"href":"https://github.com/qbittorrent/qBittorrent/pull/4943#discussion_r55916317"},"pull_request":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/4943"}}},"pull_request":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/4943","id":62629480,"html_url":"https://github.com/qbittorrent/qBittorrent/pull/4943","diff_url":"https://github.com/qbittorrent/qBittorrent/pull/4943.diff","patch_url":"https://github.com/qbittorrent/qBittorrent/pull/4943.patch","issue_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/4943","number":4943,"state":"open","locked":false,"title":"Dynamically adapt step size for rate limit boxes","user":{"login":"HaraldNordgren","id":9569897,"avatar_url":"https://avatars.githubusercontent.com/u/9569897?v=3","gravatar_id":"","url":"https://api.github.com/users/HaraldNordgren","html_url":"https://github.com/HaraldNordgren","followers_url":"https://api.github.com/users/HaraldNordgren/followers","following_url":"https://api.github.com/users/HaraldNordgren/following{/other_user}","gists_url":"https://api.github.com/users/HaraldNordgren/gists{/gist_id}","starred_url":"https://api.github.com/users/HaraldNordgren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaraldNordgren/subscriptions","organizations_url":"https://api.github.com/users/HaraldNordgren/orgs","repos_url":"https://api.github.com/users/HaraldNordgren/repos","events_url":"https://api.github.com/users/HaraldNordgren/events{/privacy}","received_events_url":"https://api.github.com/users/HaraldNordgren/received_events","type":"User","site_admin":false},"body":"This will dynamically adapt the step size of each of the four Rate Limit spinboxes to one order of magnitude below the value. When the rate limit is to 320 KiB/s, the step size will be 10, so that increasing it one step changes the value to 330 instead of 321. Increasing 1200 KiB/s will gives 1300, and so on. Values 1-99 will still have step size 1.\r\n\r\nThe step size is calculated by taking `log10` of the value every time it changes, rounding it down, subtracting by one, and inflating it again with `pow`. Special care is taken for single-digit values.","created_at":"2016-03-12T03:18:58Z","updated_at":"2016-03-12T04:59:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39f679e1e3118300c9c31f87c4939cd041784c8e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/4943/commits","review_comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/4943/comments","review_comment_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/4943/comments","statuses_url":"https://api.github.com/repos/qbittorrent/qBittorrent/statuses/26418cc171e6218aed5058f3db59f1b42556243a","head":{"label":"HaraldNordgren:master","ref":"master","sha":"26418cc171e6218aed5058f3db59f1b42556243a","user":{"login":"HaraldNordgren","id":9569897,"avatar_url":"https://avatars.githubusercontent.com/u/9569897?v=3","gravatar_id":"","url":"https://api.github.com/users/HaraldNordgren","html_url":"https://github.com/HaraldNordgren","followers_url":"https://api.github.com/users/HaraldNordgren/followers","following_url":"https://api.github.com/users/HaraldNordgren/following{/other_user}","gists_url":"https://api.github.com/users/HaraldNordgren/gists{/gist_id}","starred_url":"https://api.github.com/users/HaraldNordgren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaraldNordgren/subscriptions","organizations_url":"https://api.github.com/users/HaraldNordgren/orgs","repos_url":"https://api.github.com/users/HaraldNordgren/repos","events_url":"https://api.github.com/users/HaraldNordgren/events{/privacy}","received_events_url":"https://api.github.com/users/HaraldNordgren/received_events","type":"User","site_admin":false},"repo":{"id":53710316,"name":"qBittorrent","full_name":"HaraldNordgren/qBittorrent","owner":{"login":"HaraldNordgren","id":9569897,"avatar_url":"https://avatars.githubusercontent.com/u/9569897?v=3","gravatar_id":"","url":"https://api.github.com/users/HaraldNordgren","html_url":"https://github.com/HaraldNordgren","followers_url":"https://api.github.com/users/HaraldNordgren/followers","following_url":"https://api.github.com/users/HaraldNordgren/following{/other_user}","gists_url":"https://api.github.com/users/HaraldNordgren/gists{/gist_id}","starred_url":"https://api.github.com/users/HaraldNordgren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaraldNordgren/subscriptions","organizations_url":"https://api.github.com/users/HaraldNordgren/orgs","repos_url":"https://api.github.com/users/HaraldNordgren/repos","events_url":"https://api.github.com/users/HaraldNordgren/events{/privacy}","received_events_url":"https://api.github.com/users/HaraldNordgren/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HaraldNordgren/qBittorrent","description":"qBittorrent BitTorrent client","fork":true,"url":"https://api.github.com/repos/HaraldNordgren/qBittorrent","forks_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/forks","keys_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/teams","hooks_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/hooks","issue_events_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/issues/events{/number}","events_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/events","assignees_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/assignees{/user}","branches_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/branches{/branch}","tags_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/tags","blobs_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/statuses/{sha}","languages_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/languages","stargazers_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/stargazers","contributors_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/contributors","subscribers_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/subscribers","subscription_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/subscription","commits_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/contents/{+path}","compare_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/merges","archive_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/downloads","issues_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/issues{/number}","pulls_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/pulls{/number}","milestones_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/milestones{/number}","notifications_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/labels{/name}","releases_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/releases{/id}","deployments_url":"https://api.github.com/repos/HaraldNordgren/qBittorrent/deployments","created_at":"2016-03-12T02:57:51Z","updated_at":"2016-03-12T02:57:55Z","pushed_at":"2016-03-12T03:05:48Z","git_url":"git://github.com/HaraldNordgren/qBittorrent.git","ssh_url":"git@github.com:HaraldNordgren/qBittorrent.git","clone_url":"https://github.com/HaraldNordgren/qBittorrent.git","svn_url":"https://github.com/HaraldNordgren/qBittorrent","homepage":"http://www.qbittorrent.org","size":120648,"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":"qbittorrent:master","ref":"master","sha":"e21c3461839e8e828d11f068dce2dcd4f9864346","user":{"login":"qbittorrent","id":2131270,"avatar_url":"https://avatars.githubusercontent.com/u/2131270?v=3","gravatar_id":"","url":"https://api.github.com/users/qbittorrent","html_url":"https://github.com/qbittorrent","followers_url":"https://api.github.com/users/qbittorrent/followers","following_url":"https://api.github.com/users/qbittorrent/following{/other_user}","gists_url":"https://api.github.com/users/qbittorrent/gists{/gist_id}","starred_url":"https://api.github.com/users/qbittorrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qbittorrent/subscriptions","organizations_url":"https://api.github.com/users/qbittorrent/orgs","repos_url":"https://api.github.com/users/qbittorrent/repos","events_url":"https://api.github.com/users/qbittorrent/events{/privacy}","received_events_url":"https://api.github.com/users/qbittorrent/received_events","type":"Organization","site_admin":false},"repo":{"id":3351871,"name":"qBittorrent","full_name":"qbittorrent/qBittorrent","owner":{"login":"qbittorrent","id":2131270,"avatar_url":"https://avatars.githubusercontent.com/u/2131270?v=3","gravatar_id":"","url":"https://api.github.com/users/qbittorrent","html_url":"https://github.com/qbittorrent","followers_url":"https://api.github.com/users/qbittorrent/followers","following_url":"https://api.github.com/users/qbittorrent/following{/other_user}","gists_url":"https://api.github.com/users/qbittorrent/gists{/gist_id}","starred_url":"https://api.github.com/users/qbittorrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qbittorrent/subscriptions","organizations_url":"https://api.github.com/users/qbittorrent/orgs","repos_url":"https://api.github.com/users/qbittorrent/repos","events_url":"https://api.github.com/users/qbittorrent/events{/privacy}","received_events_url":"https://api.github.com/users/qbittorrent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qbittorrent/qBittorrent","description":"qBittorrent BitTorrent client","fork":false,"url":"https://api.github.com/repos/qbittorrent/qBittorrent","forks_url":"https://api.github.com/repos/qbittorrent/qBittorrent/forks","keys_url":"https://api.github.com/repos/qbittorrent/qBittorrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qbittorrent/qBittorrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qbittorrent/qBittorrent/teams","hooks_url":"https://api.github.com/repos/qbittorrent/qBittorrent/hooks","issue_events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/events{/number}","events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/events","assignees_url":"https://api.github.com/repos/qbittorrent/qBittorrent/assignees{/user}","branches_url":"https://api.github.com/repos/qbittorrent/qBittorrent/branches{/branch}","tags_url":"https://api.github.com/repos/qbittorrent/qBittorrent/tags","blobs_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qbittorrent/qBittorrent/statuses/{sha}","languages_url":"https://api.github.com/repos/qbittorrent/qBittorrent/languages","stargazers_url":"https://api.github.com/repos/qbittorrent/qBittorrent/stargazers","contributors_url":"https://api.github.com/repos/qbittorrent/qBittorrent/contributors","subscribers_url":"https://api.github.com/repos/qbittorrent/qBittorrent/subscribers","subscription_url":"https://api.github.com/repos/qbittorrent/qBittorrent/subscription","commits_url":"https://api.github.com/repos/qbittorrent/qBittorrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/qbittorrent/qBittorrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/qbittorrent/qBittorrent/contents/{+path}","compare_url":"https://api.github.com/repos/qbittorrent/qBittorrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qbittorrent/qBittorrent/merges","archive_url":"https://api.github.com/repos/qbittorrent/qBittorrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qbittorrent/qBittorrent/downloads","issues_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues{/number}","pulls_url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls{/number}","milestones_url":"https://api.github.com/repos/qbittorrent/qBittorrent/milestones{/number}","notifications_url":"https://api.github.com/repos/qbittorrent/qBittorrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qbittorrent/qBittorrent/labels{/name}","releases_url":"https://api.github.com/repos/qbittorrent/qBittorrent/releases{/id}","deployments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/deployments","created_at":"2012-02-04T09:37:46Z","updated_at":"2016-03-11T20:13:13Z","pushed_at":"2016-03-12T03:18:58Z","git_url":"git://github.com/qbittorrent/qBittorrent.git","ssh_url":"git@github.com:qbittorrent/qBittorrent.git","clone_url":"https://github.com/qbittorrent/qBittorrent.git","svn_url":"https://github.com/qbittorrent/qBittorrent","homepage":"http://www.qbittorrent.org","size":125613,"stargazers_count":1591,"watchers_count":1591,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":447,"mirror_url":null,"open_issues_count":1435,"forks":447,"open_issues":1435,"watchers":1591,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/4943"},"html":{"href":"https://github.com/qbittorrent/qBittorrent/pull/4943"},"issue":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/4943"},"comments":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/4943/comments"},"review_comments":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/4943/comments"},"review_comment":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/4943/commits"},"statuses":{"href":"https://api.github.com/repos/qbittorrent/qBittorrent/statuses/26418cc171e6218aed5058f3db59f1b42556243a"}}}}