Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / webview / settings / noAutoLoadImages.qml
1 import QtQuick 1.0
2 import QtWebKit 1.0
3
4 Grid {
5     property string skip: "WebView tests not counting until resources allocated to WebView maintenance"
6     columns: 2
7     Rectangle {
8         Text { id: label; x:10; y:170; color: "green"; text: "No image" }
9         border.color: "black"
10         width: 200
11         height: 200
12         WebView {
13             anchors.fill: parent
14             settings.autoLoadImages: false
15             url: "test-img.html"
16             MouseArea {
17                 anchors.fill: parent
18                 onClicked: { parent.settings.autoLoadImages=true; label.text=""; parent.reload.trigger() }
19             }
20         }
21     }
22 }