Move RSS listing example to networking

It's really showing how to request a resource and act on its becoming
available. The use of XML to do so is incidental; the use of
networking is central.

Task-number: QTBUG-111228
Change-Id: Ibcf438c7ef3b2464ddfa8b96a79fb15523e4a468
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit e54a7c56677280d9a9eb976dd455085dcce10c40)
This commit is contained in:
Edward Welbourne 2023-06-07 15:32:28 +02:00
parent f339262217
commit e57bf5b99d
11 changed files with 9 additions and 15 deletions

View File

@ -4,9 +4,6 @@
qt_internal_add_example(cbordump)
qt_internal_add_example(convert)
qt_internal_add_example(savegame)
if(TARGET Qt6::Network AND TARGET Qt6::Widgets)
qt_internal_add_example(rsslisting)
endif()
if(TARGET Qt6::Widgets)
qt_internal_add_example(streambookmarks)
endif()

View File

@ -6,6 +6,4 @@ SUBDIRS = \
qtHaveModule(widgets) {
SUBDIRS += streambookmarks
qtHaveModule(network): SUBDIRS += \
rsslisting
}

View File

@ -18,6 +18,7 @@ if(TARGET Qt6::Widgets)
qt_internal_add_example(multicastsender)
qt_internal_add_example(fortuneclient)
qt_internal_add_example(fortuneserver)
qt_internal_add_example(rsslisting)
endif()
if(QT_FEATURE_processenvironment AND TARGET Qt6::Widgets)
qt_internal_add_example(network-chat)

View File

@ -8,18 +8,16 @@ qtHaveModule(widgets) {
blockingfortuneclient \
broadcastreceiver \
broadcastsender \
fortuneclient \
fortuneserver \
http \
threadedfortuneserver \
torrent \
multicastreceiver \
multicastsender
multicastsender \
rsslisting \
threadedfortuneserver \
torrent
qtConfig(processenvironment): SUBDIRS += network-chat
SUBDIRS += \
fortuneclient \
fortuneserver
qtConfig(ssl): SUBDIRS += securesocketclient
qtConfig(dtls): SUBDIRS += secureudpserver secureudpclient
qtConfig(sctp): SUBDIRS += multistreamserver multistreamclient

View File

@ -8,7 +8,7 @@ if(NOT DEFINED INSTALL_EXAMPLESDIR)
set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/rsslisting")
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/rsslisting")
find_package(Qt6 REQUIRED COMPONENTS Core Gui Network Widgets)

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -4,5 +4,5 @@ QT += network widgets
requires(qtConfig(treewidget))
# install
target.path = $$[QT_INSTALL_EXAMPLES]/corelib/serialization/rsslisting
target.path = $$[QT_INSTALL_EXAMPLES]/network/rsslisting
INSTALLS += target