[Qt] Enable support for handling database quota's in the MiniBrowser
authorahf@0x90.dk <ahf@0x90.dk@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Mar 2012 17:23:02 +0000 (17:23 +0000)
committerahf@0x90.dk <ahf@0x90.dk@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Mar 2012 17:23:02 +0000 (17:23 +0000)
https://bugs.webkit.org/show_bug.cgi?id=81928

Reviewed by Simon Hausmann.

* MiniBrowser/qt/qml/BrowserWindow.qml:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111722 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/MiniBrowser/qt/qml/BrowserWindow.qml

index 32f67c3f343d05d0d6895fd002302e4c8d5aec79..819908cd04bbdd21eb89ecabc3ca4fa350ad8bd8 100644 (file)
@@ -1,3 +1,12 @@
+2012-03-22  Alexander Færøy  <alexander.faeroy@nokia.com>
+
+        [Qt] Enable support for handling database quota's in the MiniBrowser
+        https://bugs.webkit.org/show_bug.cgi?id=81928
+
+        Reviewed by Simon Hausmann.
+
+        * MiniBrowser/qt/qml/BrowserWindow.qml:
+
 2012-03-22  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
 
         [EFL] Implement LayoutTestController::setEditingBehavior
index 17e900b2bcbc29603c33fe85e1442b972f0bae57..7d8a91fdfde93195d3c97d17bd0407b440232d52 100644 (file)
@@ -314,6 +314,17 @@ Rectangle {
         experimental.authenticationDialog: AuthenticationDialog { }
         experimental.proxyAuthenticationDialog: ProxyAuthenticationDialog { }
         experimental.filePicker: FilePicker { }
+        experimental.databaseQuotaDialog: Item {
+            Timer {
+                interval: 1
+                running: true
+                onTriggered: {
+                    var size = model.expectedUsage / 1024 / 1024
+                    console.log("Creating database '" + model.displayName + "' of size " + size.toFixed(2) + " MB for " + model.origin.scheme + "://" + model.origin.host + ":" + model.origin.port)
+                    model.accept(model.expectedUsage)
+                }
+            }
+        }
 
         ScrollIndicator {
             flickableItem: webView.experimental.flickable