From: Enar Väikene Date: Fri, 23 Sep 2011 10:12:44 +0000 (+0300) Subject: Added more information about shared data objects. X-Git-Url: https://vaikene.ee/gitweb/gitweb.cgi?p=evaf;a=commitdiff_plain;h=c57b6a5b0b36d6fdeb9ac581a3fae3648ea39485 Added more information about shared data objects. --- 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