summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp2
-rw-r--r--src/rekonq.kcfg3
-rw-r--r--src/settings/settings_webkit.ui28
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/>