summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-08-07 15:10:43 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2020-08-11 08:13:41 +0200
commite0036577b4584e1edd4eb3b6dfea56899e41be8c (patch)
tree9090a5e43665f062ed73a83c8ef48c91a7f04552 /examples
parent8c9ff639e2ff71fc9a302bf9125b836c9397f179 (diff)
QVariantMap -> QMultiMap<QString, QVariant> in many cases
Following the separation of QMap and QMultiMap we can no longer create a QMultiMap<QString, QVariant> from a QVariantMap so entries need to be inserted through a raw loop. QMap can also no longer hold multiple values per key and as such parameters where this would be expected have changed to QMultiMap<QString, QVariant> as well. Task-number: QTBUG-85930 Change-Id: I5bdfe38c22ea0cdde5bd1336a0070514e8d6474f Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/oauth/redditclient/redditwrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/oauth/redditclient/redditwrapper.cpp b/examples/oauth/redditclient/redditwrapper.cpp
index 105f670..c112671 100644
--- a/examples/oauth/redditclient/redditwrapper.cpp
+++ b/examples/oauth/redditclient/redditwrapper.cpp
@@ -71,7 +71,7 @@ RedditWrapper::RedditWrapper(QObject *parent) : QObject(parent)
if (status == QAbstractOAuth::Status::Granted)
emit authenticated();
});
- oauth2.setModifyParametersFunction([&](QAbstractOAuth::Stage stage, QVariantMap *parameters) {
+ oauth2.setModifyParametersFunction([&](QAbstractOAuth::Stage stage, QMultiMap<QString, QVariant> *parameters) {
if (stage == QAbstractOAuth::Stage::RequestingAuthorization && isPermanent())
parameters->insert("duration", "permanent");
});