From d0ca6784282fea4cff47784e6ed5e36887187af4 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Thu, 2 May 2019 14:15:57 +0200 Subject: Doc: Fix QDoc warnings Change-Id: I00ec352cdea43d44388889805f1bd609a3555c4c Reviewed-by: Allan Sandfeld Jensen --- .../recipebrowser/doc/src/recipebrowser.qdoc | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'examples/webengine') diff --git a/examples/webengine/recipebrowser/doc/src/recipebrowser.qdoc b/examples/webengine/recipebrowser/doc/src/recipebrowser.qdoc index 0321c22e4..63a0af361 100644 --- a/examples/webengine/recipebrowser/doc/src/recipebrowser.qdoc +++ b/examples/webengine/recipebrowser/doc/src/recipebrowser.qdoc @@ -101,7 +101,7 @@ width. \skipto WebEngineView - \printuntil KeyNavigation.priority + \printuntil Layout.fillHeight We then disable the \l{WebEngineSettings::focusOnNavigationEnabled}{focusOnNavigationEnabled} setting to make sure that the \l{WebEngineView} does not steal focus from the \c RecipeList @@ -110,19 +110,25 @@ ContextMenuRequest. \skipto focusOnNavigationEnabled - \printto firstLoadComplete + \printuntil } When the application starts, instead of directly showing the \l{WebEngineView}, we show a placeholder \l{Rectangle} with a \l{BusyIndicator} to provide a nicer user experience while the - application is loading. Once the first page in the view is loaded, we start a \l{Timer} that + application is loading. + + \printuntil } + \dots 12 + \skipto Rectangle + \printuntil } + + Once the first page in the view is loaded, we start a \l{Timer} that will hide the placeholder and show the actual page. The delay provides more time for the recipe images to load, so that when the view is shown, the page is completely rendered. The timer also shows a help \l{ToolTip} that informs the user on how to navigate the recipes. - \printuntil busy.running = true - \printline } - \printline } - \printline } + \quotefromfile webengine/recipebrowser/resources/qml/main.qml + \skipto Timer { + \printuntil } Let's see what the \c RecipeList item looks like from the inside. The root item is a FocusScope to allow transferring focus to the child ListView whenever the root item receives -- cgit v1.2.3