summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@nokia.com>2012-09-17 15:54:04 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-17 16:11:56 +0200
commitf1a0abc14b073e3443cd263a5e491b8fc73d4452 (patch)
tree94de7940af47a1c93b852dbdbd25d9582932e02e /examples
parent38ea0ce63166f90dbfd2165f59ffe2f5c36d7f80 (diff)
Qt Contacts: Modularized examples and examples documentation
-Moved examples' documentation out of doc/src -Deleted malfunctioning QML Contacts example Change-Id: I5ca92fedafe182916a7d66dbe01633f125df5f3c Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/contacts/contacts.pro2
-rw-r--r--examples/contacts/qmlcontactslistview/ContactEditor.qml (renamed from examples/qmlcontactslistview/ContactEditor.qml)0
-rw-r--r--examples/contacts/qmlcontactslistview/DetailEditWidget.qml (renamed from examples/qmlcontactslistview/DetailEditWidget.qml)0
-rw-r--r--examples/contacts/qmlcontactslistview/GenericButton.qml (renamed from examples/qmlcontactslistview/GenericButton.qml)0
-rw-r--r--examples/contacts/qmlcontactslistview/doc/images/qmlcontactslistview-edit.pngbin0 -> 20886 bytes
-rw-r--r--examples/contacts/qmlcontactslistview/doc/images/qmlcontactslistview-main.pngbin0 -> 42964 bytes
-rw-r--r--examples/contacts/qmlcontactslistview/example.vcf (renamed from examples/qmlcontactslistview/example.vcf)0
-rw-r--r--examples/contacts/qmlcontactslistview/qmlcontactslistview.qml (renamed from examples/qmlcontactslistview/qmlcontactslistview.qml)0
-rw-r--r--examples/contacts/qmlcontactslistview/qmlcontactslistview.qmlproject (renamed from examples/qmlcontactslistview/qmlcontactslistview.qmlproject)0
-rw-r--r--examples/examples.pro3
-rw-r--r--examples/qmlcontacts/contacts-90.qml53
-rw-r--r--examples/qmlcontacts/contacts.qml216
-rw-r--r--examples/qmlcontacts/contents/.gitattributes2
-rw-r--r--examples/qmlcontacts/contents/Button.qml88
-rw-r--r--examples/qmlcontacts/contents/ContactListView.qml219
-rw-r--r--examples/qmlcontacts/contents/ContactView.qml330
-rw-r--r--examples/qmlcontacts/contents/FieldRow.qml96
-rw-r--r--examples/qmlcontacts/contents/MediaButton.qml76
-rw-r--r--examples/qmlcontacts/contents/ScrollBar.qml74
-rw-r--r--examples/qmlcontacts/contents/TitleBar.qml81
-rw-r--r--examples/qmlcontacts/contents/ToolBar.qml99
-rw-r--r--examples/qmlcontacts/contents/enumhelper.js63
-rw-r--r--examples/qmlcontacts/contents/example.vcf159
-rw-r--r--examples/qmlcontacts/contents/images/button-pressed.pngbin571 -> 0 bytes
-rw-r--r--examples/qmlcontacts/contents/images/button.pngbin564 -> 0 bytes
-rw-r--r--examples/qmlcontacts/contents/images/default.svg82
-rwxr-xr-xexamples/qmlcontacts/contents/images/gloss.pngbin1236 -> 0 bytes
-rwxr-xr-xexamples/qmlcontacts/contents/images/lineedit.pngbin1415 -> 0 bytes
-rw-r--r--examples/qmlcontacts/contents/images/lineedit.sci5
-rwxr-xr-xexamples/qmlcontacts/contents/images/quit.pngbin2369 -> 0 bytes
-rwxr-xr-xexamples/qmlcontacts/contents/images/stripes.pngbin257 -> 0 bytes
-rwxr-xr-xexamples/qmlcontacts/contents/images/titlebar.pngbin1436 -> 0 bytes
-rw-r--r--examples/qmlcontacts/contents/images/titlebar.sci5
-rwxr-xr-xexamples/qmlcontacts/contents/images/toolbutton.pngbin2550 -> 0 bytes
-rw-r--r--examples/qmlcontacts/contents/images/toolbutton.sci5
-rw-r--r--examples/qmlcontacts/example-contact-view.qml114
-rw-r--r--examples/qmlcontacts/qmlcontacts.qmlproject16
37 files changed, 4 insertions, 1784 deletions
diff --git a/examples/contacts/contacts.pro b/examples/contacts/contacts.pro
new file mode 100644
index 000000000..fce98ced9
--- /dev/null
+++ b/examples/contacts/contacts.pro
@@ -0,0 +1,2 @@
+TEMPLATE = subdirs
+SUBDIRS =
diff --git a/examples/qmlcontactslistview/ContactEditor.qml b/examples/contacts/qmlcontactslistview/ContactEditor.qml
index 2ee2f46c3..2ee2f46c3 100644
--- a/examples/qmlcontactslistview/ContactEditor.qml
+++ b/examples/contacts/qmlcontactslistview/ContactEditor.qml
diff --git a/examples/qmlcontactslistview/DetailEditWidget.qml b/examples/contacts/qmlcontactslistview/DetailEditWidget.qml
index b79bef17e..b79bef17e 100644
--- a/examples/qmlcontactslistview/DetailEditWidget.qml
+++ b/examples/contacts/qmlcontactslistview/DetailEditWidget.qml
diff --git a/examples/qmlcontactslistview/GenericButton.qml b/examples/contacts/qmlcontactslistview/GenericButton.qml
index 4698c7c37..4698c7c37 100644
--- a/examples/qmlcontactslistview/GenericButton.qml
+++ b/examples/contacts/qmlcontactslistview/GenericButton.qml
diff --git a/examples/contacts/qmlcontactslistview/doc/images/qmlcontactslistview-edit.png b/examples/contacts/qmlcontactslistview/doc/images/qmlcontactslistview-edit.png
new file mode 100644
index 000000000..3ea37b5a9
--- /dev/null
+++ b/examples/contacts/qmlcontactslistview/doc/images/qmlcontactslistview-edit.png
Binary files differ
diff --git a/examples/contacts/qmlcontactslistview/doc/images/qmlcontactslistview-main.png b/examples/contacts/qmlcontactslistview/doc/images/qmlcontactslistview-main.png
new file mode 100644
index 000000000..2ead3faee
--- /dev/null
+++ b/examples/contacts/qmlcontactslistview/doc/images/qmlcontactslistview-main.png
Binary files differ
diff --git a/examples/qmlcontactslistview/example.vcf b/examples/contacts/qmlcontactslistview/example.vcf
index 9fbc60421..9fbc60421 100644
--- a/examples/qmlcontactslistview/example.vcf
+++ b/examples/contacts/qmlcontactslistview/example.vcf
diff --git a/examples/qmlcontactslistview/qmlcontactslistview.qml b/examples/contacts/qmlcontactslistview/qmlcontactslistview.qml
index 19880f573..19880f573 100644
--- a/examples/qmlcontactslistview/qmlcontactslistview.qml
+++ b/examples/contacts/qmlcontactslistview/qmlcontactslistview.qml
diff --git a/examples/qmlcontactslistview/qmlcontactslistview.qmlproject b/examples/contacts/qmlcontactslistview/qmlcontactslistview.qmlproject
index ee6f03acd..ee6f03acd 100644
--- a/examples/qmlcontactslistview/qmlcontactslistview.qmlproject
+++ b/examples/contacts/qmlcontactslistview/qmlcontactslistview.qmlproject
diff --git a/examples/examples.pro b/examples/examples.pro
index 11aa33736..454e46146 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -1,5 +1,6 @@
TEMPLATE = subdirs
-SUBDIRS = \
+SUBDIRS =
+# contacts \
# qmlcontacts \
# qmlorganizer \
diff --git a/examples/qmlcontacts/contacts-90.qml b/examples/qmlcontacts/contacts-90.qml
deleted file mode 100644
index 8633f1724..000000000
--- a/examples/qmlcontacts/contacts-90.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtDeclarative module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- width: 640; height: 360
-
- Loader {
- y: 360; rotation: -90
- transformOrigin: Item.TopLeft
- source: "contacts.qml"
- }
-}
-
diff --git a/examples/qmlcontacts/contacts.qml b/examples/qmlcontacts/contacts.qml
deleted file mode 100644
index 99077dda2..000000000
--- a/examples/qmlcontacts/contacts.qml
+++ /dev/null
@@ -1,216 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the Qt Mobility Components.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtContacts 5.0
-import "contents"
-Item {
- id: screen; width: 360; height: 640
- property string viewType : "contactListView"
- property bool showContact: false
-
- Rectangle {
- id: background
- anchors.fill: parent;
-
- color: "#343434";
- Image { source: "contents/images/stripes.png"; fillMode: Image.Tile; anchors.fill: parent; opacity: 1 }
-
- ContactModel {
- id: contactModel
- Component.onCompleted : {
- if (manager == "memory")
- contactModel.importContacts(Qt.resolvedUrl("contents/example.vcf"));
- }
- sortOrders: [
- SortOrder {
- detail: ContactDetail.Name
- field: Name.FirstName
- direction: Qt.AscendingOrder
- }
- ]
- }
- TitleBar {
- id: titleBar
- width: parent.width
- height: 40
- opacity: 0.9
- managerName: contactModel.manager
- contactsCount: contactListView.count
- statusString: contactModel.error
- }
-
- ContactListView {
- id: contactListView
- width: parent.width
- anchors.top: titleBar.bottom
- anchors.bottom: parent.bottom
- x: 0
- contacts: contactModel
- onOpenContact: {
- screen.showContact = true;
- contactView.contact = contact;
- }
- onNewContact: {
- var contact = Qt.createQmlObject(
- "import QtContacts 5.0;" +
- "Contact {}", contactModel);
- screen.showContact = true;
- contactView.contact = contact;
- }
- }
-
- ContactView {
- id: contactView
- width: parent.width
- anchors.top: titleBar.bottom
- anchors.bottom: parent.bottom
- anchors.left: contactListView.right
- opacity: 0
- onDismissed: {screen.showContact = false;}
- onDeleted: {contactModel.removeContact(id);}
- }
-
- states: [
- State {
- name: "List";
- when: !screen.showContact
- PropertyChanges { target: contactListView; opacity: 1; }
- PropertyChanges { target: contactView; opacity: 0; }
- },
- State {
- name: "Detailed";
- when: screen.showContact
- PropertyChanges { target: contactListView; opacity: 0; x: -screen.width }
- PropertyChanges { target: contactView; opacity: 1; }
- }
- ]
- transitions: [
- Transition {
- from: "List"
- to: "Detailed"
- reversible: true
- SequentialAnimation {
- NumberAnimation { duration: 100; properties: "opacity,x" }
- }
- }
- ]
-
- // Attach scrollbar to the right edge of the view.
- ScrollBar {
- id: verticalScrollBar
- opacity: 0
- orientation: "Vertical"
- position: contactListView.visibleArea.yPosition
- pageSize: contactListView.visibleArea.heightRatio
- width: 20
- height: contactListView.height
- anchors.right: contactListView.right
- anchors.top: titleBar.bottom
- fgColor: "white"
- // Only show the scrollbar when the view is moving.
- states: [
- State {
- name: "ShowBars"; when: contactListView.moving
- PropertyChanges { target: verticalScrollBar; opacity: 1 }
- }
- ]
- transitions: [ Transition { NumberAnimation { property: "opacity"; duration: 400 } } ]
- }
-
- // Message box
- Rectangle {
- id:messageBox
- property string messageString: ""
- opacity:0
- height:50
- width:parent.width
- anchors.top:parent.top
- anchors.topMargin:200
- border.width: 0
- radius: 10
-
- color:"white"
- Text {
- text:messageBox.messageString
- color:"red"
- font.pointSize:20
- horizontalAlignment:Text.AlignHCenter
- }
-
- // Only show the messageBox when messageString is not empty.
- states: [
- State {
- name: "ShowMessage"; when: messageBox.messageString != ""
- PropertyChanges { target: messageBox; opacity: 1 }
- PropertyChanges { target: timer; running: true }
- }
- ]
- transitions: [
- Transition {
- NumberAnimation { property: "opacity"; duration: 500; to:0 }
- }
- ]
- Timer {
- id:timer
- interval: 1000; running: false; repeat: false
- onTriggered: {
- messageBox.messageString = ""
- running = false
- }
- }
-
- }
-
- // ListView {
- // id:managerList
- // model:contactModel.availableManagers
- // delegate: {
-
- // }
- // width: parent.width; height: parent.height
- // highlightFollowsCurrentItem: true
- // focus: true
- // anchors.fill: parent
- // keyNavigationWraps: true
- // }
- }
-}
-// ![0]
diff --git a/examples/qmlcontacts/contents/.gitattributes b/examples/qmlcontacts/contents/.gitattributes
deleted file mode 100644
index b00330f70..000000000
--- a/examples/qmlcontacts/contents/.gitattributes
+++ /dev/null
@@ -1,2 +0,0 @@
-*.vcf -crlf
-
diff --git a/examples/qmlcontacts/contents/Button.qml b/examples/qmlcontacts/contents/Button.qml
deleted file mode 100644
index 9085e5621..000000000
--- a/examples/qmlcontacts/contents/Button.qml
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtDeclarative module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- id: container
-
- signal clicked
-
- property string text
- width: buttonText.width + 28
- height: buttonText.height + 14
-
- BorderImage {
- id: buttonImage
- source: "images/toolbutton.sci"
- width: container.width - 10
- height: container.height
- }
- BorderImage {
- id: pressed
- opacity: 0
- source: "images/toolbutton.sci"
- width: container.width - 10
- height: container.height
- }
- MouseArea {
- id: mouseRegion
- anchors.fill: buttonImage
- onClicked: { container.clicked(); }
- }
- Text {
- id: buttonText
- color: "white"
- anchors.centerIn: buttonImage
- font.bold: true
- font.pixelSize: 15
- text: container.text
- style: Text.Raised
- styleColor: "black"
- }
- states: [
- State {
- name: "Pressed"
- when: mouseRegion.pressed == true
- PropertyChanges { target: pressed; opacity: 1 }
- }
- ]
-}
diff --git a/examples/qmlcontacts/contents/ContactListView.qml b/examples/qmlcontacts/contents/ContactListView.qml
deleted file mode 100644
index 9fc830756..000000000
--- a/examples/qmlcontacts/contents/ContactListView.qml
+++ /dev/null
@@ -1,219 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtDeclarative module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtContacts 5.0
-
-Item {
- id: mainItem
- property variant contacts
- property alias visibleArea: mainList.visibleArea
- property alias count: mainList.count
-
- signal newContact
- signal openContact(variant contact)
-
- ListView {
- id: mainList
- width: parent.width
- anchors.top: parent.top
- anchors.bottom: toolBar.top
- highlightFollowsCurrentItem: false
- focus: true
- keyNavigationWraps: true
- opacity: 0.8
-
- model: contacts
-
- delegate:
- Rectangle {
- id: wrapper
- border.width: 2
- height: 36;
- width: mainList.width;
-
- property color topColor: "#999999";
- property color bottomColor: "#444444";
- property real detailsOpacity: 1
- property int littleDetailsMode: 0;
-
- gradient: Gradient {
- GradientStop { position: 0.0; color: topColor }
- GradientStop { position: 1.0; color: bottomColor }
- }
-
- MouseArea {
- id: mr
- width: screen.width;
- height: wrapper.height;
- anchors.centerIn: parent;
- onClicked: { littleDetailsMode = !littleDetailsMode; mainList.currentIndex = index; }
- }
- Column {
- Row {
- spacing: 2
-
- Column {
- Item {
- id: mainLabel;
- width: nameTxt.width
- height: nameTxt.height + 16;
- Text {
- id: nameTxt
- y: 8;
- //text: model.contact.displayLabel
- text: model.contact.name.firstName
- color: "white"
- }
- }
-
- Item {
- id: details
- property color textColor: "#ffffdd";
- opacity: wrapper.detailsOpacity
- height: childrenRect.height + 6;
- width: childrenRect.width;
-
- Column {
- Text {
- text: model.contact.displayLabel ? model.contact.displayLabel.label : ""
- color: details.textColor;
- }
- Text {
- text: "State:" + (model.contact.presence.state == Presence.Unknown ? "Unknown" : model.contact.presence.stateText)
- color: details.textColor;
- }
- }
- }
- }
-
- Item {
- id: buttonBox
- x: wrapper.width - 6 - childrenRect.width;
- y: 4;
- height:childrenRect.height
- opacity: details.opacity;
- Column {
- // Buttons
- MediaButton {
- id: dialButton;
- text: "Dial";
- }
- MediaButton {
- id: textButton
- text: "Send Text";
- }
- Item {
- height:childrenRect.height
- width: childrenRect.width
- MediaButton {
- id: viewButton
- text: "More..."
- opacity: 0;
- onClicked: { openContact(model.contact); }
- }
- }
- }
- }
- }
- }
- states: [
- State {
- name: "List";
- when: mainList.currentIndex != index || wrapper.littleDetailsMode == 0
- PropertyChanges { target: wrapper; detailsOpacity: 0; }
- PropertyChanges { target: wrapper; topColor: "#333333"; }
- PropertyChanges { target: wrapper; bottomColor: "#111111"; }
- PropertyChanges { target: buttonBox; x: wrapper.width + 6; }
- },
- State {
- name: "MiniDetails"
- when: (mainList.currentIndex == index) && (wrapper.littleDetailsMode == 1);
- PropertyChanges { target: viewButton; opacity: 1; }
- PropertyChanges { target: wrapper; height: Math.max(mainLabel.height + details.height + 4, buttonBox.height + 8); }
- PropertyChanges { target: mainList; explicit: true; contentY: wrapper.y } // XXX I don't think this should be here
- }
- ]
-
- transitions: [
- Transition {
- from: "List"
- to: "MiniDetails"
- reversible: false
- SequentialAnimation {
- NumberAnimation { duration: 100; properties: "detailsOpacity,height" }
- ParallelAnimation {
- ColorAnimation { duration: 100; properties: "topColor, bottomColor";}
- NumberAnimation { duration: 150; properties: "x"; }
- }
- }
- },
- Transition {
- from: "MiniDetails"
- to: "List"
- reversible: false
- SequentialAnimation {
- NumberAnimation { duration: 100; properties: "x"; }
- ParallelAnimation{
- NumberAnimation { duration: 150; properties: "detailsOpacity,height" }
- ColorAnimation { duration: 150; properties: "topColor, bottomColor";}
- }
- }
- }
- ]
- }
- }
- ToolBar {
- id: toolBar
- height: 40
- anchors.bottom: parent.bottom
- width: parent.width
- opacity: 0.9
- labels: ["Change manager", "New contact"]
- onButtonClicked: {
- if (index == 1) {
- newContact();
- } else {
- messageBox.messageString = "Not implemented :("
- }
- }
- }
-}
diff --git a/examples/qmlcontacts/contents/ContactView.qml b/examples/qmlcontacts/contents/ContactView.qml
deleted file mode 100644
index 44548816e..000000000
--- a/examples/qmlcontacts/contents/ContactView.qml
+++ /dev/null
@@ -1,330 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtDeclarative module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtContacts 5.0
-import "enumhelper.js" as EnumHelper
-
-Item {
- property variant contact
- signal dismissed
- signal deleted(int id)
- property bool showDetailed: false
-
- ListView {
- id: normalView
- focus: true
- keyNavigationWraps: true
- width: parent.width
- anchors.top: parent.top
- anchors.bottom: toolBar.top
- opacity: 1
- transform: Scale {
- id: normalViewScale;
- xScale: 1
- origin.x: normalView.width/2
- }
-
- model: VisualItemModel {
- Text {
- width: normalView.width - 6;
- height: 30
- text: "Name"
- verticalAlignment: Text.AlignVCenter
- horizontalAlignment: Text.AlignHCenter
- color: "white";
- font.weight: Font.Bold
- }
- FieldRow {
- id: displayLabelRow
- width: normalView.width
- label: "Display"
- value: (contact && contact.displayLabel) ? contact.displayLabel.label : ""
- }
- FieldRow {
- id: firstNameRow
- width: normalView.width
- label: "First name"
- value: contact ? contact.name.firstName : ""
- }
- FieldRow {
- id: lastNameRow
- width: normalView.width
- label: "Last name"
- value: contact ? contact.name.lastName : ""
- }
-
- Text {
- width: normalView.width - 6;
- height: 30
- text: "Phone Numbers"
- verticalAlignment: Text.AlignVCenter
- horizontalAlignment: Text.AlignHCenter
- color: "white";
- font.weight: Font.Bold
- }
- Column {
- Repeater {
- model: contact ? contact.phoneNumbers : []
- delegate:
- FieldRow {
- width: normalView.width
- label: modelData.contexts.toString()
- value: modelData.number
- onBlur: {
- modelData.setValue(PhoneNumber.Number, newValue);
- }
- }
- }
- }
- MediaButton {
- text: "+ Phone";
- onClicked: {
- var detail = Qt.createQmlObject(
- "import QtContacts 5.0;" +
- "PhoneNumber {number: ''}", contact);
- contact.addDetail(detail);
- }
- }
-
- Text {
- width: normalView.width - 6;
- height: 30
- text: "Email Addresses"
- verticalAlignment: Text.AlignVCenter
- horizontalAlignment: Text.AlignHCenter
- color: "white";
- font.weight: Font.Bold
- }
- Column {
- Repeater {
- model: contact ? contact.emails : []
- delegate:
- FieldRow {
- width: normalView.width
- label: modelData.contexts.toString()
- value: modelData.emailAddress
- onBlur: {
- modelData.setValue(EmailAddress.EmailAddress, newValue);
- }
- }
- }
- }
- MediaButton {
- text: "+ Email";
- onClicked: {
- var detail = Qt.createQmlObject(
- "import QtContacts 5.0;" +
- "EmailAddress {emailAddress: ''}", contact);
- contact.addDetail(detail);
- }
- }
-
- Text {
- width: normalView.width - 6;
- height: 30
- text: "Extended Details"
- verticalAlignment: Text.AlignVCenter
- horizontalAlignment: Text.AlignHCenter
- color: "white";
- font.weight: Font.Bold
- }
- Column {
- Repeater {
- model: contact ? contact.extendedDetails : []
- delegate:
- Column {
- FieldRow {
- width: normalView.width
- label: "Name"
- value: modelData.name
- onBlur: {
- modelData.setValue(ExtendedDetail.Name, newValue);
- }
- }
- FieldRow {
- width: normalView.width
- label: "Data"
- value: modelData.data
- onBlur: {
- modelData.setValue(ExtendedDetail.Data, newValue);
- }
- }
- }
- }
- }
- MediaButton {
- text: "+ Extended";
- width: normalView.width
- onClicked: {
- var detail = Qt.createQmlObject(
- "import QtContacts 5.0;" +
- "ExtendedDetail {}", contact);
- contact.addDetail(detail);
- }
- }
- }
- }
-
- ListView {
- id: detailView
- focus: true
- keyNavigationWraps: true
- width: parent.width
- anchors.top: parent.top
- anchors.bottom: toolBar.top
- opacity: 1
- visible: false
- transform: Scale {
- id: detailViewScale;
- xScale: 0
- origin.x: detailView.width/2
- }
-
- model: contact ? contact.contactDetails : null
-
- delegate: Column {
- width: parent.width
- Text {
- width: detailView.width - 6;
- height: 30
- horizontalAlignment: Text.AlignHCenter
- text: EnumHelper.detailTypeToString(modelData.type);
- verticalAlignment: Text.AlignVCenter
- color: "white";
- font.weight: Font.Bold
- }
- Repeater {
- id: fieldView
-
- property variant detail: modelData
- model: detail.fields.length
-
- delegate:
- Item {
- width: detailView.width
- height: childrenRect.height
- Text {
- id: fieldName
- width: parent.width * 0.5;
- height: 20;
- anchors.margins: 3
- anchors.left: parent.left
- text: fieldView.detail.fields[index]
- color: "white"
- }
- Text {
- id: textRect
- anchors.left: fieldName.right
- anchors.right: parent.right
- anchors.rightMargin: 3
- height: 30
- color: "white"
- text: fieldView.detail.value(parseInt(fieldName.text))
- }
- }
- }
- }
- }
-
- ToolBar {
- id: toolBar
- height: 40;
- anchors.bottom: parent.bottom;
- width: parent.width;
- opacity: 0.9
- labels: ["Save", "Cancel", "Delete", "Details"]
- onButtonClicked: {
- // force the focus away from any TextInputs, to ensure they save
- toolBar.focus = true
- contact.displayLabel.label = displayLabelRow.newValue
- contact.name.firstName = firstNameRow.newValue
- contact.name.lastName = lastNameRow.newValue
- switch (index) {
- case 0:
- contact.save();
- break;
- case 2:
- deleted(contact.contactId)
- break;
- case 3:
- showDetailed = !showDetailed;
- break;
- }
- if (index != 3)
- dismissed();
- }
- }
-
- states: [
- State {
- name: "Detailed"
- when: showDetailed
- PropertyChanges {
- target: normalViewScale
- xScale: 0
- }
- PropertyChanges {
- target: normalView
- visible: false
- }
- PropertyChanges {
- target: detailViewScale
- xScale: 1
- }
- PropertyChanges {
- target: detailView
- visible: true
- }
- }
- ]
- transitions: [
- Transition {
- from: ""
- to: "Detailed"
- reversible: true
- SequentialAnimation {
- NumberAnimation { duration: 100; target: normalViewScale; properties: "xScale" }
- NumberAnimation { duration: 100; target: detailViewScale; properties: "xScale" }
- }
- }
- ]
-}
diff --git a/examples/qmlcontacts/contents/FieldRow.qml b/examples/qmlcontacts/contents/FieldRow.qml
deleted file mode 100644
index 5212e1fcd..000000000
--- a/examples/qmlcontacts/contents/FieldRow.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtDeclarative module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- property string label
- property variant value
- property alias newValue: textEdit.text
-
- signal blur
-
- height: childrenRect.height
- Text {
- id: fieldName
- width: parent.width * 0.5;
- height: 20;
- anchors.margins: 3
- anchors.left: parent.left
- text: label
- color: "white"
- }
- Rectangle {
- id: textRect
- anchors.left: fieldName.right
- anchors.right: parent.right
- anchors.rightMargin: 3
- height: 30;
- color: "#00000000";
- border.color: "#00000000";
- border.width: 0
- BorderImage {
- source: "images/lineedit.sci"
- anchors.fill: parent
- }
- TextInput {
- id: textEdit
- anchors.fill: parent
- anchors.margins: 3
- text: value.toString()
- color: "black"
- onActiveFocusChanged: { if (!activeFocus) { blur(); } }
- }
- states: [
- State {
- name: "focused"
- when: textEdit.activeFocus
- PropertyChanges {
- target: textRect
- color: "#aaffffff"
- radius: 2
- border.width: 1
- border.color: "black"
- }
- }
- ]
- }
-}
diff --git a/examples/qmlcontacts/contents/MediaButton.qml b/examples/qmlcontacts/contents/MediaButton.qml
deleted file mode 100644
index 1a70729fc..000000000
--- a/examples/qmlcontacts/contents/MediaButton.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the Qt Mobility Components.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- property string text
- signal clicked
-
- id: container
- Image {
- id: normal
- source: "images/button.png"
- }
- Image {
- id: pressed
- opacity: 0
- source: "images/button-pressed.png"
- }
- MouseArea {
- id: clickRegion
- anchors.fill: normal
- onClicked: { container.clicked();}
- }
- Text {
- font.bold: true
- color: "white"
- anchors.centerIn: normal
- text: container.text
- }
- width: normal.width
- height: childrenRect.height
-
- states: State {
- name: "Pressed"
- when: clickRegion.pressed == true
- PropertyChanges { target: pressed; opacity: 1 }
- }
-}
diff --git a/examples/qmlcontacts/contents/ScrollBar.qml b/examples/qmlcontacts/contents/ScrollBar.qml
deleted file mode 100644
index 98b8efee4..000000000
--- a/examples/qmlcontacts/contents/ScrollBar.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the Qt Mobility Components.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- id: scrollBar
- // The properties that define the scrollbar's state.
- // position and pageSize are in the range 0.0 - 1.0. They are relative to the
- // height of the page, i.e. a pageSize of 0.5 means that you can see 50%
- // of the height of the view.
- // orientation can be either 'Vertical' or 'Horizontal'
- property real position
- property real pageSize
- property string orientation : "Vertical"
- property alias bgColor: background.color
- property alias fgColor: thumb.color
-
- // A light, semi-transparent background
- Rectangle {
- id: background
- radius: orientation == 'Vertical' ? (width/2 - 1) : (height/2 - 1)
- color: "white"; opacity: 0.3
- anchors.fill: parent
- }
- // Size the bar to the required size, depending upon the orientation.
- Rectangle {
- id: thumb
- opacity: 0.7
- color: "black"
- radius: orientation == 'Vertical' ? (width/2 - 1) : (height/2 - 1)
- x: orientation == 'Vertical' ? 1 : (scrollBar.position * (scrollBar.width-2) + 1)
- y: orientation == 'Vertical' ? (scrollBar.position * (scrollBar.height-2) + 1) : 1
- width: orientation == 'Vertical' ? (parent.width-2) : (scrollBar.pageSize * (scrollBar.width-2))
- height: orientation == 'Vertical' ? (scrollBar.pageSize * (scrollBar.height-2)) : (parent.height-2)
- }
-}
diff --git a/examples/qmlcontacts/contents/TitleBar.qml b/examples/qmlcontacts/contents/TitleBar.qml
deleted file mode 100644
index 67ee89a34..000000000
--- a/examples/qmlcontacts/contents/TitleBar.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtDeclarative module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- id: titleBar
- property string managerName: ""
- property int contactsCount: 0
- property string statusString: ""
-
-
- BorderImage { source: "images/titlebar.sci"; width: parent.width; height: parent.height + 14; y: -7 }
-
- Item {
- id: container
- width: (parent.width * 2) - 55 ; height: parent.height
-
- Image {
- id: quitButton
- anchors.left: parent.left//; anchors.leftMargin: 0
- anchors.verticalCenter: parent.verticalCenter
- source: "images/quit.png"
- MouseArea {
- anchors.fill: parent
- onClicked: Qt.quit()
- }
- }
-
- Text {
- id: categoryText
- anchors {
- left: quitButton.right; right: parent.right; //leftMargin: 10; rightMargin: 10
- verticalCenter: parent.verticalCenter
- }
- elide: Text.ElideLeft
- text: "[" + managerName + "] Total:" + contactsCount + " " + statusString
- font.bold: true; font.pixelSize: 15; color: "White"; style: Text.Raised; styleColor: "Black"
- }
-
- }
-
-}
diff --git a/examples/qmlcontacts/contents/ToolBar.qml b/examples/qmlcontacts/contents/ToolBar.qml
deleted file mode 100644
index 3732d9a46..000000000
--- a/examples/qmlcontacts/contents/ToolBar.qml
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtDeclarative module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- id: toolbar
-
- property variant labels
- signal buttonClicked(int index)
-
- BorderImage {
- source: "images/titlebar.sci"
- width: parent.width
- height: parent.height + 14
- y: -7
- }
-
- Row {
- y: 3
- anchors.horizontalCenter: parent.horizontalCenter
- Rectangle {
- property int dummy: 0
- property int fpsCount: 0
- color: "black"
- width: 35
- height: 20
- Text {
- id: fpsText
- color: "white"
- anchors.centerIn: parent
- }
- NumberAnimation on dummy {
- duration: 500
- from: 0
- to: 10000
- loops: Animation.Infinite
- }
- onDummyChanged: fpsCount++;
-
- Timer {
- interval: 1000
- repeat: true
- running: true
- onTriggered: {
- fpsText.text = parent.fpsCount;
- parent.fpsCount = 0;
- }
- }
- }
- Repeater {
- model: toolbar.labels
- delegate:
- Button {
- text: modelData
- onClicked: toolbar.buttonClicked(model.index)
- }
- }
- }
-
-}
diff --git a/examples/qmlcontacts/contents/enumhelper.js b/examples/qmlcontacts/contents/enumhelper.js
deleted file mode 100644
index 973af55f9..000000000
--- a/examples/qmlcontacts/contents/enumhelper.js
+++ /dev/null
@@ -1,63 +0,0 @@
-function detailTypeToString(detailType) {
- switch (detailType) {
- case ContactDetail.Address:
- return "Address";
- case ContactDetail.Anniversary:
- return "Anniversary";
- case ContactDetail.Avatar:
- return "Avatar";
- case ContactDetail.Birthday:
- return "Birthday";
- case ContactDetail.DisplayLabel:
- return "DisplayLabel";
- case ContactDetail.Email:
- return "Email";
- case ContactDetail.ExtendedDetail:
- return "ExtDetail";
- case ContactDetail.Family:
- return "Family";
- case ContactDetail.Favorite:
- return "Favorite";
- case ContactDetail.Gender:
- return "Gender";
- case ContactDetail.Geolocation:
- return "GeoLocation";
- case ContactDetail.GlobalPresence:
- return "GlobalPresence";
- case ContactDetail.Guid:
- return "Guid";
- case ContactDetail.Hobby:
- return "Hobby";
- case ContactDetail.Name:
- return "Name";
- case ContactDetail.NickName:
- return "NickName";
- case ContactDetail.Note:
- return "Note";
- case ContactDetail.OnlineAccount:
- return "OnlineAccount";
- case ContactDetail.Organization:
- return "Organization";
- case ContactDetail.PhoneNumber:
- return "PhoneNumber";
- case ContactDetail.Presence:
- return "Presence";
- case ContactDetail.Ringtone:
- return "Ringtone";
- case ContactDetail.SyncTarget:
- return "SyncTarget";
- case ContactDetail.Tag:
- return "Tag";
- case ContactDetail.Timestamp:
- return "Timestamp";
- case ContactDetail.Type:
- return "Type";
- case ContactDetail.Url:
- return "Url";
- case ContactDetail.Version:
- return "Version";
- default:
- console.log("UNKNOWN TYPE: " + detailType)
- return "Unknown"
- }
-}
diff --git a/examples/qmlcontacts/contents/example.vcf b/examples/qmlcontacts/contents/example.vcf
deleted file mode 100644
index a1d993cfc..000000000
--- a/examples/qmlcontacts/contents/example.vcf
+++ /dev/null
@@ -1,159 +0,0 @@
-BEGIN:VCARD
-VERSION:3.0
-FN:Ms. Aaron Gates
-N:Gates;Aaron;;;
-NICKNAME:Aaron nickname
-EMAIL;TYPE=INTERNET:aaron@example.com
-EMAIL;TYPE=INTERNET:aaron_extra@example.com
-TEL;TYPE=WORK:33333
-TEL;TYPE=HOME:333331
-TEL;TYPE=HOME;TYPE=FAX:333332
-TEL;TYPE=PAGER:333333
-TEL;TYPE=CELL:333334
-ADR;WORK;POSTAL;CHARSET=UTF-8:PO Box;Extended Address;Work Street Address;Work Locality(Town);Work Region(State);Work Post Code;Work Country;Work City;Work State;Work PostCode;Work Country
-ADR;HOME;POSTAL;CHARSET=UTF-8:PO Box;Extended Address;Home Street Address;Home Locality(Town);Home Region(State);Home Post Code;Home Country;Work City;Work State;Work PostCode;Work Country
-LABEL;WORK;ENCODING=QUOTED-PRINTABLE:BusinessOffice=0D=0A=0D=0A, =0D=0A
-LABEL;HOME;ENCODING=QUOTED-PRINTABLE:=0D=0A, =0D=0A
-ORG:Example
-TITLE:Engineer
-BDAY:2009-01-01
-PHOTO;ENCODING=BASE64;TYPE=GOOGLECONTACTSPHOTO_1140C7078B06ECD7:/9j/4A
- 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
- JXSS45r//Z
-URL;TYPE=WORK:http://qt.nokia.com/logo.png
-URL;TYPE=HOME:http://qt.nokia.com/logo.png
-NOTE:Some notes are here
-END:VCARD
-BEGIN:VCARD
-VERSION:3.0
-FN:Mr. Alexander Mcdonald
-N:Mcdonald;Alexander;;;
-EMAIL;TYPE=INTERNET:alex@example.com
-TEL;TYPE=WORK:111111111
-ADR;TYPE=WORK;POSTAL;CHARSET=UTF-8:PO Box;Extended Address;Work Street Address;Work Locality(Town);Work Region(State);Work Post Code;Work Country;Work City;Work State;Work PostCode;Work Country
-ADR;TYPE=HOME;POSTAL;CHARSET=UTF-8:PO Box;Extended Address;Home Street Address;Home Locality(Town);Home Region(State);Home Post Code;Home Country;Work City;Work State;Work PostCode;Work Country
-ORG:Example
-TITLE:Engineer
-BDAY:2010-02-02
-END:VCARD
-BEGIN:VCARD
-VERSION:3.0
-FN:Mr. Andy Clark
-N:Clark;Andy;;;
-EMAIL;TYPE=INTERNET:andy@example.com
-TEL;TYPE=WORK:07-2342322
-ORG:Example
-TITLE:Engineer
-BDAY:2011-03-03
-PHOTO;VALUE=URL;TYPE=PNG:http://qt.nokia.com/logo.png
-END:VCARD
-BEGIN:VCARD
-VERSION:3.0
-FN:Mr. Bill Chilton
-N:Chilton;Bill;;;
-EMAIL;TYPE=INTERNET:bill@example.com
-TEL;TYPE=WORK:564412232
-ORG:Example
-TITLE:Manager
-BDAY:2012-04-04
-END:VCARD
-BEGIN:VCARD
-VERSION:3.0
-FN:Mr. Bob Green
-N:Green;Bob;;;
-EMAIL;TYPE=INTERNET:bob@example.com
-TEL;TYPE=WORK:07-3242325
-ORG:Example
-TITLE:Engineer
-BDAY:2013-05-05
-END:VCARD
-BEGIN:VCARD
-VERSION:3.0
-FN:Mr. Charles Brows
-N:Brows;Charles;;;
-EMAIL;TYPE=INTERNET:charles@example.com
-TEL;TYPE=WORK:32324534233
-ORG:Example
-TITLE:Engineer
-BDAY:2015-07-07
-END:VCARD
-BEGIN:VCARD
-VERSION:3.0
-FN:Mr. David Edie
-N:Edie;David;;;
-EMAIL;TYPE=INTERNET:david@example.com
-TEL;TYPE=WORK:(07) 3245-2323
-ORG:Example
-TITLE:Manager
-BDAY:2015-08-08
-END:VCARD
-BEGIN:VCARD
-VERSION:3.0
-FN:Mr. Jason Black
-N:Black;Jason;;;
-EMAIL;TYPE=INTERNET:jason@example.com
-TEL;TYPE=WORK:33333333333
-ORG:Example
-TITLE:Engineer
-BDAY:2016-09-09
-END:VCARD
-BEGIN:VCARD
-VERSION:3.0
-FN:Mrs. Carol Eden
-N:Eden;Carol;;;
-EMAIL;TYPE=INTERNET:carol@example.com
-TEL;TYPE=WORK:2323242
-ORG:Example
-TITLE:Manager
-BDAY:2014-06-06
-END:VCARD
diff --git a/examples/qmlcontacts/contents/images/button-pressed.png b/examples/qmlcontacts/contents/images/button-pressed.png
deleted file mode 100644
index e434d327f..000000000
--- a/examples/qmlcontacts/contents/images/button-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/qmlcontacts/contents/images/button.png b/examples/qmlcontacts/contents/images/button.png
deleted file mode 100644
index 56a63ce64..000000000
--- a/examples/qmlcontacts/contents/images/button.png
+++ /dev/null
Binary files differ
diff --git a/examples/qmlcontacts/contents/images/default.svg b/examples/qmlcontacts/contents/images/default.svg
deleted file mode 100644
index 248199cc4..000000000
--- a/examples/qmlcontacts/contents/images/default.svg
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48px" height="48px" id="svg1306">
- <defs id="defs1308">
- <linearGradient id="linearGradient4083">
- <stop id="stop4085" offset="0" stop-color="#ffffff" stop-opacity="0"/>
- <stop offset="0.75" id="stop4089" stop-color="#ffffff" stop-opacity="0"/>
- <stop id="stop4087" offset="1" stop-color="#ffffff" stop-opacity="1"/>
- </linearGradient>
- <linearGradient id="linearGradient4032">
- <stop id="stop4034" offset="0" stop-color="#fff7c2" stop-opacity="0.63829786"/>
- <stop offset="0.59394139" id="stop4036" stop-color="#fcaf3e" stop-opacity="0.18348624"/>
- <stop id="stop4038" offset="0.83850551" stop-color="#fcaf3e" stop-opacity="0.50458717"/>
- <stop id="stop4040" offset="1" stop-color="#fcaf3e" stop-opacity="1"/>
- </linearGradient>
- <linearGradient id="linearGradient4026">
- <stop id="stop4028" offset="0" stop-color="#fff9c6" stop-opacity="1"/>
- <stop offset="0.54166669" id="stop4042" stop-color="#fff28c" stop-opacity="1"/>
- <stop id="stop4030" offset="1" stop-color="#ffea85" stop-opacity="1"/>
- </linearGradient>
- <linearGradient xlink:href="#linearGradient4026" id="linearGradient3168" gradientUnits="userSpaceOnUse" x1="-28.968945" y1="-25.326815" x2="-37.19698" y2="-9.5590506"/>
- <radialGradient xlink:href="#linearGradient4032" id="radialGradient4020" cx="-33.519073" cy="-22.113297" fx="-33.519073" fy="-22.113297" r="9.5" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0.487739,1.292402,-1.10267,0.497242,-41.77393,32.41492)"/>
- <radialGradient xlink:href="#linearGradient4083" id="radialGradient4081" cx="23.99999" cy="23.381506" fx="23.99999" fy="23.381506" r="19.141981" gradientTransform="matrix(1.006701,2.235326e-16,-2.23715e-16,1.007522,-0.160816,0.426981)" gradientUnits="userSpaceOnUse"/>
- </defs>
-
- <metadata id="metadata1311">
- <rdf:RDF>
- <cc:Work rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
- <dc:title>weather-clear</dc:title>
- <dc:date>January 2006</dc:date>
- <dc:creator>
- <cc:Agent>
- <dc:title>Ryan Collier (pseudo)</dc:title>
- </cc:Agent>
- </dc:creator>
- <dc:publisher>
- <cc:Agent>
- <dc:title>http://www.tango-project.org</dc:title>
- </cc:Agent>
- </dc:publisher>
- <dc:source>http://www.pseudocode.org</dc:source>
- <dc:subject>
- <rdf:Bag>
- <rdf:li>weather</rdf:li>
- <rdf:li>applet</rdf:li>
- <rdf:li>notification</rdf:li>
- </rdf:Bag>
- </dc:subject>
- <cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/2.0/"/>
- <dc:contributor>
- <cc:Agent>
- <dc:title>Garrett LeSage</dc:title>
- </cc:Agent>
- </dc:contributor>
- </cc:Work>
- <cc:License rdf:about="http://creativecommons.org/licenses/by-sa/2.0/">
- <cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
- <cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
- <cc:requires rdf:resource="http://web.resource.org/cc/Notice"/>
- <cc:requires rdf:resource="http://web.resource.org/cc/Attribution"/>
- <cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
- <cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike"/>
- </cc:License>
- </rdf:RDF>
- </metadata>
- <g id="layer1">
- <g>
- <g opacity="0.7">
- <path d="M 24 2.5 L 21.625 9.1875 C 22.399034 9.0641318 23.191406 9 24 9 C 24.808594 9 25.600966 9.0641317 26.375 9.1875 L 24 2.5 z M 8.8125 8.78125 L 11.84375 15.21875 C 12.779034 13.928569 13.928569 12.779034 15.21875 11.84375 L 8.8125 8.78125 z M 39.21875 8.78125 L 32.78125 11.84375 C 34.071431 12.779034 35.220966 13.928569 36.15625 15.21875 L 39.21875 8.78125 z M 9.1875 21.59375 L 2.5 23.96875 L 9.1875 26.34375 C 9.0673373 25.57952 9 24.797813 9 24 C 9 23.180625 9.0608858 22.377571 9.1875 21.59375 z M 38.8125 21.625 C 38.935868 22.399034 39 23.191406 39 24 C 39 24.808594 38.935868 25.600966 38.8125 26.375 L 45.5 24 L 38.8125 21.625 z M 11.84375 32.78125 L 8.8125 39.1875 L 15.21875 36.15625 C 13.928569 35.220966 12.779034 34.071431 11.84375 32.78125 z M 36.15625 32.78125 C 35.229789 34.05926 34.087617 35.194799 32.8125 36.125 L 39.21875 39.1875 L 36.15625 32.78125 z M 21.625 38.8125 L 24 45.5 L 26.375 38.8125 C 25.600966 38.935868 24.808594 39 24 39 C 23.191406 39 22.399034 38.935868 21.625 38.8125 z " fill="#fce94f" fill-opacity="1" stroke="#fcaf3e" stroke-width="0.73732895" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/>
- <path d="M 24 5.25 L 22.65625 9.0625 C 23.098888 9.0231486 23.547187 9 24 9 C 24.452813 9 24.901112 9.0231486 25.34375 9.0625 L 24 5.25 z M 10.78125 10.75 L 12.5 14.375 C 13.071538 13.694089 13.724004 13.038745 14.40625 12.46875 L 10.78125 10.75 z M 37.25 10.75 L 33.625 12.46875 C 34.304675 13.038189 34.961811 13.695325 35.53125 14.375 L 37.25 10.75 z M 9.0625 22.625 L 5.28125 23.96875 L 9.0625 25.3125 C 9.024981 24.880146 9 24.442031 9 24 C 9 23.536406 9.0212735 23.077908 9.0625 22.625 z M 38.9375 22.65625 C 38.976851 23.098888 39 23.547187 39 24 C 39 24.452813 38.976851 24.901112 38.9375 25.34375 L 42.71875 24 L 38.9375 22.65625 z M 35.53125 33.59375 C 34.958293 34.27954 34.309985 34.957363 33.625 35.53125 L 37.25 37.25 L 35.53125 33.59375 z M 12.5 33.625 L 10.78125 37.21875 L 14.375 35.5 C 13.702932 34.935884 13.064116 34.297068 12.5 33.625 z M 22.65625 38.9375 L 24 42.71875 L 25.34375 38.9375 C 24.901112 38.976851 24.452813 39 24 39 C 23.547187 39 23.098888 38.976851 22.65625 38.9375 z " fill="none" fill-opacity="1" stroke="url(#radialGradient4081)" stroke-width="0.84646249" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/>
- </g>
- <g>
- <g>
- <path transform="matrix(0.778062,-1.061285,1.061287,0.778062,67.47952,3.641324)" d="M -22.5 -17.5 A 9.5 9.5 0 1 1 -41.5,-17.5 A 9.5 9.5 0 1 1 -22.5 -17.5 z" fill="#ffee54" fill-opacity="1" stroke="#fcaf3e" stroke-width="0.75991178" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/>
- <path transform="matrix(1.244257,-0.167707,0.216642,1.251844,67.61648,40.527)" d="M -22.5 -17.5 A 9.5 9.5 0 1 1 -41.5,-17.5 A 9.5 9.5 0 1 1 -22.5 -17.5 z" fill="url(#radialGradient4020)" fill-opacity="1" stroke="none" stroke-width="1.01737845" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/>
- <path transform="matrix(0.715791,-0.976349,0.97635,0.715792,64.00044,5.269544)" d="M -22.5 -17.5 A 9.5 9.5 0 1 1 -41.5,-17.5 A 9.5 9.5 0 1 1 -22.5 -17.5 z" fill="none" fill-opacity="1" stroke="url(#linearGradient3168)" stroke-width="0.82601947" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/>
- </g>
- </g>
- </g>
- </g>
-</svg>
diff --git a/examples/qmlcontacts/contents/images/gloss.png b/examples/qmlcontacts/contents/images/gloss.png
deleted file mode 100755
index 5d370cd93..000000000
--- a/examples/qmlcontacts/contents/images/gloss.png
+++ /dev/null
Binary files differ
diff --git a/examples/qmlcontacts/contents/images/lineedit.png b/examples/qmlcontacts/contents/images/lineedit.png
deleted file mode 100755
index 2cc38dc35..000000000
--- a/examples/qmlcontacts/contents/images/lineedit.png
+++ /dev/null
Binary files differ
diff --git a/examples/qmlcontacts/contents/images/lineedit.sci b/examples/qmlcontacts/contents/images/lineedit.sci
deleted file mode 100644
index 054bff78b..000000000
--- a/examples/qmlcontacts/contents/images/lineedit.sci
+++ /dev/null
@@ -1,5 +0,0 @@
-border.left: 10
-border.top: 10
-border.bottom: 10
-border.right: 10
-source: lineedit.png
diff --git a/examples/qmlcontacts/contents/images/quit.png b/examples/qmlcontacts/contents/images/quit.png
deleted file mode 100755
index 5bda1b6e0..000000000
--- a/examples/qmlcontacts/contents/images/quit.png
+++ /dev/null
Binary files differ
diff --git a/examples/qmlcontacts/contents/images/stripes.png b/examples/qmlcontacts/contents/images/stripes.png
deleted file mode 100755
index 9f36727ea..000000000
--- a/examples/qmlcontacts/contents/images/stripes.png
+++ /dev/null
Binary files differ
diff --git a/examples/qmlcontacts/contents/images/titlebar.png b/examples/qmlcontacts/contents/images/titlebar.png
deleted file mode 100755
index 51c90082d..000000000
--- a/examples/qmlcontacts/contents/images/titlebar.png
+++ /dev/null
Binary files differ
diff --git a/examples/qmlcontacts/contents/images/titlebar.sci b/examples/qmlcontacts/contents/images/titlebar.sci
deleted file mode 100644
index 0418d94cd..000000000
--- a/examples/qmlcontacts/contents/images/titlebar.sci
+++ /dev/null
@@ -1,5 +0,0 @@
-border.left: 10
-border.top: 12
-border.bottom: 12
-border.right: 10
-source: titlebar.png
diff --git a/examples/qmlcontacts/contents/images/toolbutton.png b/examples/qmlcontacts/contents/images/toolbutton.png
deleted file mode 100755
index 11310013e..000000000
--- a/examples/qmlcontacts/contents/images/toolbutton.png
+++ /dev/null
Binary files differ
diff --git a/examples/qmlcontacts/contents/images/toolbutton.sci b/examples/qmlcontacts/contents/images/toolbutton.sci
deleted file mode 100644
index 9e4f96530..000000000
--- a/examples/qmlcontacts/contents/images/toolbutton.sci
+++ /dev/null
@@ -1,5 +0,0 @@
-border.left: 15
-border.top: 4
-border.bottom: 4
-border.right: 15
-source: toolbutton.png
diff --git a/examples/qmlcontacts/example-contact-view.qml b/examples/qmlcontacts/example-contact-view.qml
deleted file mode 100644
index e39d3f3b0..000000000
--- a/examples/qmlcontacts/example-contact-view.qml
+++ /dev/null
@@ -1,114 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the Qt Mobility Components.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtContacts 5.0
-import "contents"
-
-Rectangle {
- id: topItem
- width: 360
- height: 640
- x: 0
- y: 0
-
- Column {
- spacing:4
-
- Text { text:"Name(from property name):" + myContact.name.firstName + " " + myContact.name.lastName }
- Text { text:"Name(from detail type):" + myContact.detail(ContactDetail.Name).firstName + " " + myContact.name.lastName }
- Text { text:"Name(from detail name):" + myContact.detail("Name").firstName + " " + myContact.name.lastName }
- Text { text:"Address:" + myContact.address.street + " " + myContact.address.locality + " " + myContact.address.region + " " + myContact.address.postcode }
- Text { text:"Email:" + myContact.email.emailAddress }
- Text { text:"phone number[0]:" + myContact.phoneNumbers[0].number }
- Text { text:"phone number[1]:" + myContact.phoneNumbers[1].number }
- Text { text:"phone number[2]:" + myContact.phoneNumbers[2].number }
- }
-
-
- Contact {
- id: myContact
- type:"Contact"
- Name {
- firstName:"Charles"
- lastName:"Yin"
- }
-
- EmailAddress {
- emailAddress:"charles.yin@nokia.com"
- }
-
- address.street:"53 Brandl St"
- address.locality: "Eight Mile Plains"
- address.region: "QLD"
- address.postcode:"4111"
- address.country:"Australia"
- address.subTypes:["Office"]
- address.postOfficeBox:"1111"
-
- Nickname {
- nickname:"Charles"
- }
-
- PhoneNumber {
- number: "1111111111"
- subTypes:["Office", "Mobile"]
- }
-
- PhoneNumber {
- number: "2222222222"
- subTypes:["Home"]
- }
-
- PhoneNumber {
- number: "3333333333"
- subTypes:["Mobile"]
- }
- }
- DetailFilter {
- id:filter
- detail:ContactDetail.Name
- field:Name.FirstName
- value:"Charles"
- matchFlags:Filter.MatchExactly
- }
-}
-
-// ![0]
diff --git a/examples/qmlcontacts/qmlcontacts.qmlproject b/examples/qmlcontacts/qmlcontacts.qmlproject
deleted file mode 100644
index d4909f868..000000000
--- a/examples/qmlcontacts/qmlcontacts.qmlproject
+++ /dev/null
@@ -1,16 +0,0 @@
-import QmlProject 1.0
-
-Project {
- /* Include .qml, .js, and image files from current directory and subdirectories */
- QmlFiles {
- directory: "."
- }
- JavaScriptFiles {
- directory: "."
- }
- ImageFiles {
- directory: "."
- }
- /* List of plugin directories passed to QML runtime */
- // importPaths: [ " ../exampleplugin " ]
-}