X-Git-Url: https://vaikene.ee/gitweb/highlight.css?a=blobdiff_plain;ds=sidebyside;f=www%2Fpswgen06.html;h=6c7ea93e28f6f9e9abdec3e2e85de4cdf2238026;hb=f443e47f50a5d12f592aaae6a4e553e4a125ee1c;hp=aefb6ece066c647cb56786a7d31d909062de451d;hpb=0a383af776fe4c1c0ac1059dd3732f32cb6e1c7a;p=evaf diff --git a/www/pswgen06.html b/www/pswgen06.html index aefb6ec..6c7ea93 100644 --- a/www/pswgen06.html +++ b/www/pswgen06.html @@ -141,6 +141,17 @@ virtual QExplicitlySharedDataPointer<Storage::Data> query(QString const & name) const = 0; +
The query() method returns an explicitly shared shared data pointer, which has the following advantages:
+The drawback is that if a module needs a local copy of the data object, it has to use the QExplicitlySharedDataPointer::detach() method to create a deep copy of the data object.
+The specification also mentions partial matches where entering "fa" would offer "facebook.com" if it exists. This could be done by using the QCompleter class that provides auto completion in Qt widgets like QLineEdit and QComboBox. The QCompleter class needs a QAbstractItemModel for the auto completion word list and we can provide it