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.5 Change-Id: Ief1c9dc2ca38ba3da1fe3039500292147ec4cc7d Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io> (cherry picked from commit ebc371de0d626d60a2a3aa5b82e3530e3e1d9f27) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
ff8da2cf30
commit
a4043c8f6a
@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\example serialization/rsslisting
|
\example rsslisting
|
||||||
\examplecategory {Networking}
|
\examplecategory {Networking}
|
||||||
\meta tag {serialization}
|
\meta tag {serialization}
|
||||||
\title A minimal RSS listing application
|
\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
|
former. For the sake of illustration, it gives the widget the Qt blog's URL
|
||||||
as default value for the resource to check.
|
as default value for the resource to check.
|
||||||
|
|
||||||
\snippet serialization/rsslisting/main.cpp 0
|
\snippet rsslisting/main.cpp 0
|
||||||
|
|
||||||
\section1 The RSSListing class
|
\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
|
The widget itself provides a simple user interface for specifying the URL to
|
||||||
fetch and, once available updates are displayed, controlling the downloading
|
fetch and, once available updates are displayed, controlling the downloading
|
||||||
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
\section2 Construction
|
\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
|
The constructor sets up the assorted components of the widget and connects
|
||||||
their various signals to the slots it shall use to handle them.
|
their various signals to the slots it shall use to handle them.
|
||||||
@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
\section2 The slots
|
\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.
|
All slots are kept simple by delegating any hard work to private methods.
|
||||||
|
|
||||||
@ -94,7 +94,7 @@
|
|||||||
|
|
||||||
\section2 The get() method
|
\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
|
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
|
HTTP GET request. It first clears the XML stream reader and, if a reply is
|
||||||
@ -106,7 +106,7 @@
|
|||||||
|
|
||||||
\section2 The parseXml() method
|
\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
|
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,
|
parseXml() reads from the XML stream, checking for \c item elements and,
|
||||||
|
@ -23,7 +23,7 @@ qhp.QtNetwork.subprojects.classes.sortPages = true
|
|||||||
|
|
||||||
tagfile = ../../../doc/qtnetwork/qtnetwork.tags
|
tagfile = ../../../doc/qtnetwork/qtnetwork.tags
|
||||||
|
|
||||||
depends += qtcore qtgui qtdoc qmake qtcmake
|
depends += qtcore qtgui qtdoc qmake qtcmake qtwidgets
|
||||||
|
|
||||||
headerdirs += ..
|
headerdirs += ..
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user