on xenial help sign in
Add a tiny comment
092148eMichal Hruby
plugins/Unity/variantutils.cpp+4
@@ -54,6 +54,10 @@ QVariantHash convertToQVariantHash(const unity::glib::HintsMap& var)
54 return hash;
54 return hash;
55}
55}
56
56
57+/* This will translate uris in the form of:
58+ * "subscope:master.scope/sub.scope?foo=bar"
59+ * into a QVariantHash that can be passed as a metadata field to scope.
60+ */
57QVariantHash subscopeUriToMetadataHash(const QString &metadata_string)
61QVariantHash subscopeUriToMetadataHash(const QString &metadata_string)
58{
62{
59 QUrl metadata_url(metadata_string);
63 QUrl metadata_url(metadata_string);