diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-04-15 00:31:28 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-04-15 00:31:28 +0200 |
commit | c6c126df4a2e022d52c3ecc46ac62e8f5404f2e3 (patch) | |
tree | 0d2ebbb433377eccc64567272adc580b41d22ccd /src | |
parent | urlbar look change (diff) | |
download | rekonq-c6c126df4a2e022d52c3ecc46ac62e8f5404f2e3.tar.xz |
Let offline web application cache quota being configurable :)
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 2 | ||||
-rw-r--r-- | src/rekonq.kcfg | 3 | ||||
-rw-r--r-- | src/settings/settings_webkit.ui | 28 |
3 files changed, 31 insertions, 2 deletions
diff --git a/src/application.cpp b/src/application.cpp index 172a0e22..fd84c44b 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -648,7 +648,7 @@ void Application::updateConfiguration() QString path = KStandardDirs::locateLocal("cache", QString("WebkitLocalStorage/rekonq"), true); path.remove("rekonq"); QWebSettings::setOfflineStoragePath(path); - QWebSettings::setOfflineStorageDefaultQuota(50000); + QWebSettings::setOfflineStorageDefaultQuota(ReKonfig::offlineWebApplicationCacheQuota() * 1024); } // ================= WebGl =================== diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg index c6931d2b..80831ae9 100644 --- a/src/rekonq.kcfg +++ b/src/rekonq.kcfg @@ -206,6 +206,9 @@ <entry name="localStorageEnabled" type="Bool"> <default>false</default> </entry> + <entry name="offlineWebApplicationCacheQuota" type="Int"> + <default>50</default> + </entry> <!-- xxx --> <entry name="javaEnabled" type="Bool"> <default>true</default> diff --git a/src/settings/settings_webkit.ui b/src/settings/settings_webkit.ui index d797171b..265789ef 100644 --- a/src/settings/settings_webkit.ui +++ b/src/settings/settings_webkit.ui @@ -155,7 +155,7 @@ <property name="title"> <string>HTML 5</string> </property> - <layout class="QVBoxLayout" name="verticalLayout_3"> + <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QCheckBox" name="kcfg_offlineStorageDatabaseEnabled"> <property name="text"> @@ -177,6 +177,27 @@ </property> </widget> </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Offline web application quota</string> + </property> + </widget> + </item> + <item> + <widget class="KIntNumInput" name="kcfg_offlineWebApplicationCacheQuota"> + <property name="minimum"> + <number>0</number> + </property> + <property name="suffix"> + <string> Kb</string> + </property> + </widget> + </item> + </layout> + </item> </layout> </widget> </item> @@ -201,6 +222,11 @@ <extends>QComboBox</extends> <header>kcombobox.h</header> </customwidget> + <customwidget> + <class>KIntNumInput</class> + <extends>QWidget</extends> + <header>knuminput.h</header> + </customwidget> </customwidgets> <resources/> <connections/> |