From c57b6a5b0b36d6fdeb9ac581a3fae3648ea39485 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enar=20V=C3=A4ikene?= Date: Fri, 23 Sep 2011 13:12:44 +0300 Subject: [PATCH] Added more information about shared data objects. --- www/pswgen06.html | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.47.0