Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Refactor websettings default handling
With per-domain settings, having a getter for a setting gets really complicated, as there isn't one true value for a setting. The only reason we needed those getters is to save away the default values for some settings where we were unsure what the defaults are. - For font setters, we can get the defaults from QFont, like QtWeb{Kit,Engine} do. - For font sizes, we hardcode the defaults QtWeb{Kit,Engine} hardcodes too. - For maximum-page-in-cache, we hardcode 0, just like QtWebKit. - For default-encoding, we hardcode iso-8559-1, like QtWeb{Kit,Engine} - For offline-storage-default-quota, we hardcode 5MB, like QtWebKit - For offline-web-application-cache-quota, we hardcode MAXINT as default value, but we still keep the empty value in the config. It means "no quota" internally in QtWebKit, but it's a too confusing value to have in the config. - For object-cache-capacities it's a bit more complicated (the defaults are calculated based on disk space), but let's just get rid of the setting altogether in the next commit (see #1751). Closes #2639.
- Loading branch information
Showing
with
170 additions
and 211 deletions.
Oops, something went wrong.