aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/contactlist/doc
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-11-17 22:15:53 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2016-11-17 21:54:39 +0000
commitefc119e2d5c85e2bc98f9d0904ddad223cf7f74e (patch)
tree8c5f20a57f0944666a0ca7f1a856fb3ed0928270 /examples/quickcontrols2/contactlist/doc
parent0779dc2ad0a7e087de71eadf64423e9610d3cc0a (diff)
Contact List: rename AddressModel to ContactModel
Change-Id: I2da41a5d108b5da23dc969d30c50138ef7e42cc3 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'examples/quickcontrols2/contactlist/doc')
-rw-r--r--examples/quickcontrols2/contactlist/doc/src/qtquickcontrols2-contactlist.qdoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/quickcontrols2/contactlist/doc/src/qtquickcontrols2-contactlist.qdoc b/examples/quickcontrols2/contactlist/doc/src/qtquickcontrols2-contactlist.qdoc
index 93ef569d..a6a25b49 100644
--- a/examples/quickcontrols2/contactlist/doc/src/qtquickcontrols2-contactlist.qdoc
+++ b/examples/quickcontrols2/contactlist/doc/src/qtquickcontrols2-contactlist.qdoc
@@ -43,27 +43,27 @@
The contact list application allows the user to add, edit, and remove contacts.
The actual implementation is done in C++ and exposed as a QAbstractListModel.
- The AdressModel C++ class is registered under a namespace and later
+ The ContactModel C++ class is registered under a namespace and later
imported and instantiated by \e MainForm.ui.qml. For more information about registering C++
classes as QML types, see \l {Defining QML Types from C++}.
\code
#include <QtQml/qqml.h>
...
- qmlRegisterType<AdressModel>("Backend", 1, 0, "AdressModel");
+ qmlRegisterType<ContactModel>("Backend", 1, 0, "ContactModel");
...
\endcode
\section1 Designer Support
- In the designer subdirectory, we create a plugin that replaces the AdressModel
+ In the designer subdirectory, we create a plugin that replaces the ContactModel
in Qt Quick Designer. For this to work we add the following line to \e contactlist.pro.
\code
QML_DESIGNER_IMPORT_PATH=$$PWD/designer
\endcode
- Because Qt Quick Designer cannot instantiate the AdressModel C++ class, we define
+ Because Qt Quick Designer cannot instantiate the ContactModel C++ class, we define
a mockup using a ListModel. This ensures that the ListView using the model shows something
in Qt Quick Designer.