diff options
author | Venugopal Shivashankar <venugopal.shivashankar@digia.com> | 2015-03-05 15:10:03 +0100 |
---|---|---|
committer | Venugopal Shivashankar <venugopal.shivashankar@digia.com> | 2015-03-09 14:21:08 +0000 |
commit | 3e6a14168bfa1a8815baf28eba8eeff5e3a97a80 (patch) | |
tree | ba8520a1bf0f45cfa32bbde2d76924d02bc56453 /examples/network/doc | |
parent | b0ae0db61afbb93f8087937c8453d78a680bcbeb (diff) |
Example: Removed the code to handle 'num_entries' info.
The Google Suggest API doesn't return the 'num_queries'
anymore. Had to remove code related to 'num_queries' entry
so that the suggestion list shows up.
Task-number: QTBUG-42817
Change-Id: Ic918d1c86840fa4c1e18f32a984f5a9dd911261d
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'examples/network/doc')
-rw-r--r-- | examples/network/doc/images/googlesuggest-example.png | bin | 9006 -> 21272 bytes | |||
-rw-r--r-- | examples/network/doc/src/googlesuggest.qdoc | 12 |
2 files changed, 4 insertions, 8 deletions
diff --git a/examples/network/doc/images/googlesuggest-example.png b/examples/network/doc/images/googlesuggest-example.png Binary files differindex 477d444cbd..c704f5b2b4 100644 --- a/examples/network/doc/images/googlesuggest-example.png +++ b/examples/network/doc/images/googlesuggest-example.png diff --git a/examples/network/doc/src/googlesuggest.qdoc b/examples/network/doc/src/googlesuggest.qdoc index 912947dfdf..168515446f 100644 --- a/examples/network/doc/src/googlesuggest.qdoc +++ b/examples/network/doc/src/googlesuggest.qdoc @@ -68,12 +68,8 @@ in the explicit \c editor member variable. We then create a QTreeWidget as a toplevel widget and configure the various - properties to give it the look of a popup widget. - - The popup will be populated by the results returned from Google. We set - the number of columns to be two, since we want to display both the - suggested search term and the number of hits it will trigger in the search - engine. + properties to give it the look of a popup widget. The widget is populated + with the results by Google Suggest API request. Furthermore, we install the GSuggestCompletion instance as an event filter on the QTreeWidget, and connect the \c itemClicked() signal with the \c @@ -110,8 +106,8 @@ \snippet googlesuggest/googlesuggest.cpp 4 The \c showCompletion() function populates the QTreeWidget with the results - returned from the query. It takes two QStringLists, one with the suggested - search terms and the other with the corresponding number of hits. + returned from the query. It takes a QStringList of the suggested search + terms. \snippet googlesuggest/googlesuggest.cpp 5 |