rsslisting example: remove unused include and surplus blank lines

Pick-to: 6.5
Task-number: QTBUG-111228
Change-Id: Ibfa82aef67eaf6ba758dade30a4c9542f2836123
Reviewed-by: Mate Barany <mate.barany@qt.io>
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
This commit is contained in:
Edward Welbourne 2023-05-04 16:51:47 +02:00
parent 7337474d04
commit d52cc4725f
2 changed files with 0 additions and 7 deletions

View File

@ -23,7 +23,6 @@ its operation, and also allows very large data sources to be read.
#include "rsslisting.h"
/*
Constructs an RSSListing widget with a simple user interface, and sets
up the XML reader to use a custom handler class.
@ -58,7 +57,6 @@ RSSListing::RSSListing(QWidget *parent)
connect(fetchButton, &QPushButton::clicked, this, &RSSListing::fetch);
QVBoxLayout *layout = new QVBoxLayout(this);
QHBoxLayout *hboxLayout = new QHBoxLayout;
hboxLayout->addWidget(lineEdit);
@ -158,7 +156,6 @@ void RSSListing::finished(QNetworkReply *reply)
fetchButton->setEnabled(true);
}
/*
Parses the XML data and creates treeWidget items accordingly.
*/
@ -181,7 +178,6 @@ void RSSListing::parseXml()
titleString.clear();
linkString.clear();
}
} else if (xml.isCharacters() && !xml.isWhitespace()) {
if (currentTag == "title")
titleString += xml.text();

View File

@ -7,7 +7,6 @@
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QWidget>
#include <QBuffer>
#include <QXmlStreamReader>
#include <QUrl>
@ -48,8 +47,6 @@ private:
QLineEdit *lineEdit;
QTreeWidget *treeWidget;
QPushButton *fetchButton;
};
#endif