summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2023-01-05 10:54:33 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-08-14 14:55:54 +0000
commit75133302ee7f6b3f48e4df18c31e09bdeddb1b68 (patch)
tree79a09cf0dd1a104f680845a4e783f67c07ed68f9 /examples
parent0484b100fbee19cddef7d632f8be651166fdb3f1 (diff)
Add initial internal version page
We kept urls in examples to point to company website. However this site is heavy to load and moreover it changes overtime leaving example screenshots obsolete. Introduce internal qt version web ui page which will be default page for examples and which displays basic information and can work offline. For start show version info and command line options for chrome://qt Change-Id: I0271ce6e7b152efe4942a6240b0c74ba382d5fcc Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io> (cherry picked from commit a748cb9183143b76cad1e940220dcabf25475493) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/webenginequick/quicknanobrowser/main.cpp2
-rw-r--r--examples/webenginewidgets/simplebrowser/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/webenginequick/quicknanobrowser/main.cpp b/examples/webenginequick/quicknanobrowser/main.cpp
index 850b8c443..1e693cbcd 100644
--- a/examples/webenginequick/quicknanobrowser/main.cpp
+++ b/examples/webenginequick/quicknanobrowser/main.cpp
@@ -21,7 +21,7 @@ static QUrl startupUrl(const QCommandLineParser &parser)
if (url.isValid())
return url;
}
- return QUrl(QStringLiteral("https://www.qt.io"));
+ return QUrl(QStringLiteral("chrome://qt"));
}
int main(int argc, char **argv)
diff --git a/examples/webenginewidgets/simplebrowser/main.cpp b/examples/webenginewidgets/simplebrowser/main.cpp
index d5d9e78ab..bd9a3a198 100644
--- a/examples/webenginewidgets/simplebrowser/main.cpp
+++ b/examples/webenginewidgets/simplebrowser/main.cpp
@@ -18,7 +18,7 @@ QUrl commandLineUrlArgument()
if (!arg.startsWith(u'-'))
return QUrl::fromUserInput(arg);
}
- return QUrl(u"https://www.qt.io"_s);
+ return QUrl(u"chrome://qt"_s);
}
int main(int argc, char **argv)