summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonatan Pålsson <jonatan.palsson@pelagicore.com>2014-02-12 10:34:26 +0100
committerJonatan Pålsson <jonatan.palsson@pelagicore.com>2014-02-12 10:34:26 +0100
commitefdfaf7be1a3e0af287916266ab25c6ad001a647 (patch)
treecbf13cd1a74a159bafd684a09b2437b2f10f8076
parent4152aaddcbf51aa391e25a6b5372c1202469063f (diff)
downloadbrowser-poc-efdfaf7be1a3e0af287916266ab25c6ad001a647.tar.gz
Added 'clear cache' button to test UI
-rw-r--r--testapp/qml/testapp/CacheManager.qml12
1 files changed, 11 insertions, 1 deletions
diff --git a/testapp/qml/testapp/CacheManager.qml b/testapp/qml/testapp/CacheManager.qml
index be38609..19994cc 100644
--- a/testapp/qml/testapp/CacheManager.qml
+++ b/testapp/qml/testapp/CacheManager.qml
@@ -89,6 +89,17 @@ Item {
anchors.leftMargin: 0
anchors.verticalCenter: getCachePolicyButton.verticalCenter
font.pixelSize: 12
+ }
+
+ Button {
+ id: clearCacheButton
+ x: -376
+ width: getCachePolicyButton.width
+ text: "Clear cache"
+ anchors.top: getCachePolicyButton.bottom
+ anchors.topMargin: 10
+ anchors.horizontalCenter: cacheSizeButton.horizontalCenter
+ onClicked: cachemanagerinterface.clearCache();
}
}
@@ -109,7 +120,6 @@ Item {
id: setCachePolicyGroup
x: 185
y: 0
- width: onlineCachebutton.width*3
height: onlineCacheButton.height
title: ""
anchors.horizontalCenter: parent.horizontalCenter