aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/contactlist
Commit message (Collapse)AuthorAgeFilesLines
* Contact List: give the contact dialog focusJ-P Nurmi2016-11-172-0/+2
| | | | | Change-Id: Id8d48a42e283e262c44a9f2c64268459a4a11050 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Contact List: add dialog titlesJ-P Nurmi2016-11-171-0/+2
| | | | | Change-Id: Ia842791e28380fd672d3edfe0e6acad0613a64ae Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Contact List: cleanup the list viewJ-P Nurmi2016-11-171-4/+1
| | | | | | | No clipping, current index, or x-coordinates needed. Change-Id: Ibfb4a8e1159072a84ee229607b28e7f4010eb925 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Contact List: fix model insertionJ-P Nurmi2016-11-171-3/+5
| | | | | | | | New contacts must be inserted in alphabetical order so the sections stay sane. Change-Id: I39279bbeb429198b38a2b4da1d76eb50bfab723c Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Contact List: simplify the ContactModel gettersJ-P Nurmi2016-11-171-12/+4
| | | | | | | QList::value() does the boundary checking for us. Change-Id: I6965e6be861da86d35e6f30f74c94ba39e4ad2ea Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Contact List: rename AddressModel to ContactModelJ-P Nurmi2016-11-178-53/+53
| | | | | Change-Id: I2da41a5d108b5da23dc969d30c50138ef7e42cc3 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Contact List: cosmetic cleanupJ-P Nurmi2016-11-177-30/+18
| | | | | Change-Id: I5782451235269cac8c4e6aaf319a30151cb599ef Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Contact List example: replace Qt Quick primitives with ControlsJ-P Nurmi2016-11-174-32/+25
| | | | | | | | This ensures that we get the correct colors when running with different styles. Change-Id: If249f9704fbe157aab1b121cf7d09ee05ab85c14 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Contact List example: make ContactDelegate.ui.qml designableJ-P Nurmi2016-11-171-19/+5
| | | | | | | | | Replace the MouseArea and its onClicked signal handler with a checkable AbstractButton to achieve declarative bindings and that way make it possible to open ContactDelegate.ui.qml in Qt Quick Designer. Change-Id: I764e0adc23d4a0d44dd6660ed14e224a4e0e30c7 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Adding new example Contact ListThomas Hartmann2016-11-1714-0/+1174
This example shows how to integrate a C++ backend without disrupting the tooling. A custom list model is implemented in C++ and registered as a QML type. Change-Id: I958bc38797ef353cdb5ea23ec69ada67e132ced7 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>