summaryrefslogtreecommitdiffstats
path: root/examples/network/googlesuggest
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/googlesuggest')
-rw-r--r--examples/network/googlesuggest/googlesuggest.cpp4
-rw-r--r--examples/network/googlesuggest/googlesuggest.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/network/googlesuggest/googlesuggest.cpp b/examples/network/googlesuggest/googlesuggest.cpp
index 2cba43178e..04a60103b2 100644
--- a/examples/network/googlesuggest/googlesuggest.cpp
+++ b/examples/network/googlesuggest/googlesuggest.cpp
@@ -148,7 +148,7 @@ bool GSuggestCompletion::eventFilter(QObject *obj, QEvent *ev)
//! [4]
//! [5]
-void GSuggestCompletion::showCompletion(const QVector<QString> &choices)
+void GSuggestCompletion::showCompletion(const QList<QString> &choices)
{
if (choices.isEmpty())
return;
@@ -210,7 +210,7 @@ void GSuggestCompletion::handleNetworkData(QNetworkReply *networkReply)
{
QUrl url = networkReply->url();
if (networkReply->error() == QNetworkReply::NoError) {
- QVector<QString> choices;
+ QList<QString> choices;
QByteArray response(networkReply->readAll());
QXmlStreamReader xml(response);
diff --git a/examples/network/googlesuggest/googlesuggest.h b/examples/network/googlesuggest/googlesuggest.h
index a0b0ac069c..909386569b 100644
--- a/examples/network/googlesuggest/googlesuggest.h
+++ b/examples/network/googlesuggest/googlesuggest.h
@@ -64,7 +64,7 @@ public:
explicit GSuggestCompletion(QLineEdit *parent = nullptr);
~GSuggestCompletion();
bool eventFilter(QObject *obj, QEvent *ev) override;
- void showCompletion(const QVector<QString> &choices);
+ void showCompletion(const QList<QString> &choices);
public slots: