Doc: RSS listing example: Fix file quoting

The example was moved to qtnetwork but its documentation
still referred to old paths under /examples/corelib.

Add documentation dependency to qtwidgets as RSS listing
example's docs link to a number of widget classes.

Pick-to: 6.6 6.5
Change-Id: Ief1c9dc2ca38ba3da1fe3039500292147ec4cc7d
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
This commit is contained in:
Topi Reinio 2023-06-15 07:12:09 +00:00 committed by Topi Reiniö
parent 7264f141cf
commit ebc371de0d
2 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\example serialization/rsslisting
\example rsslisting
\examplecategory {Networking}
\meta tag {serialization}
\title A minimal RSS listing application
@ -31,11 +31,11 @@
former. For the sake of illustration, it gives the widget the Qt blog's URL
as default value for the resource to check.
\snippet serialization/rsslisting/main.cpp 0
\snippet rsslisting/main.cpp 0
\section1 The RSSListing class
\snippet serialization/rsslisting/rsslisting.h 0
\snippet rsslisting/rsslisting.h 0
The widget itself provides a simple user interface for specifying the URL to
fetch and, once available updates are displayed, controlling the downloading
@ -51,7 +51,7 @@
\section2 Construction
\snippet serialization/rsslisting/rsslisting.cpp setup
\snippet rsslisting/rsslisting.cpp setup
The constructor sets up the assorted components of the widget and connects
their various signals to the slots it shall use to handle them.
@ -69,7 +69,7 @@
\section2 The slots
\snippet serialization/rsslisting/rsslisting.cpp slots
\snippet rsslisting/rsslisting.cpp slots
All slots are kept simple by delegating any hard work to private methods.
@ -94,7 +94,7 @@
\section2 The get() method
\snippet serialization/rsslisting/rsslisting.cpp get
\snippet rsslisting/rsslisting.cpp get
The private \c get() method is used by the \c fetch() slot to initiate an
HTTP GET request. It first clears the XML stream reader and, if a reply is
@ -106,7 +106,7 @@
\section2 The parseXml() method
\snippet serialization/rsslisting/rsslisting.cpp parse
\snippet rsslisting/rsslisting.cpp parse
When data is received, and thus made available to the XML stream reader, \c
parseXml() reads from the XML stream, checking for \c item elements and,

View File

@ -23,7 +23,7 @@ qhp.QtNetwork.subprojects.classes.sortPages = true
tagfile = ../../../doc/qtnetwork/qtnetwork.tags
depends += qtcore qtgui qtdoc qmake qtcmake
depends += qtcore qtgui qtdoc qmake qtcmake qtwidgets
headerdirs += ..