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:
parent
7337474d04
commit
d52cc4725f
@ -23,7 +23,6 @@ its operation, and also allows very large data sources to be read.
|
|||||||
|
|
||||||
#include "rsslisting.h"
|
#include "rsslisting.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Constructs an RSSListing widget with a simple user interface, and sets
|
Constructs an RSSListing widget with a simple user interface, and sets
|
||||||
up the XML reader to use a custom handler class.
|
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);
|
connect(fetchButton, &QPushButton::clicked, this, &RSSListing::fetch);
|
||||||
|
|
||||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||||
|
|
||||||
QHBoxLayout *hboxLayout = new QHBoxLayout;
|
QHBoxLayout *hboxLayout = new QHBoxLayout;
|
||||||
|
|
||||||
hboxLayout->addWidget(lineEdit);
|
hboxLayout->addWidget(lineEdit);
|
||||||
@ -158,7 +156,6 @@ void RSSListing::finished(QNetworkReply *reply)
|
|||||||
fetchButton->setEnabled(true);
|
fetchButton->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Parses the XML data and creates treeWidget items accordingly.
|
Parses the XML data and creates treeWidget items accordingly.
|
||||||
*/
|
*/
|
||||||
@ -181,7 +178,6 @@ void RSSListing::parseXml()
|
|||||||
titleString.clear();
|
titleString.clear();
|
||||||
linkString.clear();
|
linkString.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (xml.isCharacters() && !xml.isWhitespace()) {
|
} else if (xml.isCharacters() && !xml.isWhitespace()) {
|
||||||
if (currentTag == "title")
|
if (currentTag == "title")
|
||||||
titleString += xml.text();
|
titleString += xml.text();
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#include <QNetworkAccessManager>
|
#include <QNetworkAccessManager>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QBuffer>
|
|
||||||
#include <QXmlStreamReader>
|
#include <QXmlStreamReader>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
@ -48,8 +47,6 @@ private:
|
|||||||
QLineEdit *lineEdit;
|
QLineEdit *lineEdit;
|
||||||
QTreeWidget *treeWidget;
|
QTreeWidget *treeWidget;
|
||||||
QPushButton *fetchButton;
|
QPushButton *fetchButton;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user