diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2013-08-05 16:37:31 +0200 |
---|---|---|
committer | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2013-08-20 18:15:09 +0200 |
commit | ccfeac7d1e474408e2cae169714326f6198eb17c (patch) | |
tree | 56d245e3277c2a455589f7d30b3bff9e5a8fb5b7 /examples/widgets/browser/htmls | |
parent | 0498dc995ddac96009c5ef496545cdd6f49f367f (diff) |
Import the demo browser into widget examples.
Import the sources as-is, without adding it to the build, to allow
performing diffs later on the changes that were needed to port it
to use QtWebEngine and manage source compatibility issues.
Change-Id: Icf8a284881ce2153e9b5a1ba97dbe77096f1b88d
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'examples/widgets/browser/htmls')
-rw-r--r-- | examples/widgets/browser/htmls/htmls.qrc | 5 | ||||
-rw-r--r-- | examples/widgets/browser/htmls/notfound.html | 63 |
2 files changed, 68 insertions, 0 deletions
diff --git a/examples/widgets/browser/htmls/htmls.qrc b/examples/widgets/browser/htmls/htmls.qrc new file mode 100644 index 000000000..03b256ccb --- /dev/null +++ b/examples/widgets/browser/htmls/htmls.qrc @@ -0,0 +1,5 @@ +<!DOCTYPE RCC><RCC version="1.0"> +<qresource> + <file>notfound.html</file> +</qresource> +</RCC> diff --git a/examples/widgets/browser/htmls/notfound.html b/examples/widgets/browser/htmls/notfound.html new file mode 100644 index 000000000..e89845aa6 --- /dev/null +++ b/examples/widgets/browser/htmls/notfound.html @@ -0,0 +1,63 @@ +<html> +<head> +<title>%1</title> +<style> +body { + padding: 3em 0em; + background: #eeeeee; +} +hr { + color: lightgray; + width: 100%; +} +img { + float: left; + opacity: .8; +} +#box { + background: white; + border: 1px solid lightgray; + width: 600px; + padding: 60px; + margin: auto; +} +h1 { + font-size: 130%; + font-weight: bold; + border-bottom: 1px solid lightgray; + margin-left: 48px; +} +h2 { + font-size: 100%; + font-weight: normal; + border-bottom: 1px solid lightgray; + margin-left: 48px; +} +ul { + font-size: 80%; + padding-left: 48px; + margin: 0; +} +#reloadButton { + padding-left: 48px; +} +</style> +</head> +<body> + <div id="box"> + <img src="data:image/png;base64,IMAGE_BINARY_DATA_HERE" width="32" height="32"/> + <h1>%2</h1> + <h2>When connecting to: %3.</h2> + <ul> + <li>Check the address for errors such as <b>ww</b>.example.com + instead of <b>www</b>.example.com</li> + <li>If the address is correct, try checking the network + connection.</li> + <li>If your computer or network is protected by a firewall or + proxy, make sure that the browser demo is permitted to access + the network.</li> + </ul> + <br/><br/> + </div> +</body> +</html> |