rsslisting example: remove unused include and surplus blank lines
Task-number: QTBUG-111228 Change-Id: Ibfa82aef67eaf6ba758dade30a4c9542f2836123 Reviewed-by: Mate Barany <mate.barany@qt.io> Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> (cherry picked from commit d52cc4725faacc68a9fde69dfc899c4b432fe036) Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
parent
0ff025ef0e
commit
af35ef9453
@ -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);
|
||||||
@ -154,7 +152,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.
|
||||||
*/
|
*/
|
||||||
@ -176,7 +173,6 @@ void RSSListing::parseXml()
|
|||||||
item->setText(1, linkString);
|
item->setText(1, linkString);
|
||||||
treeWidget->addTopLevelItem(item);
|
treeWidget->addTopLevelItem(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
} 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