--- a/qtmobility/examples/qmlcontacts/main.cpp Fri Jun 11 14:26:25 2010 +0300
+++ b/qtmobility/examples/qmlcontacts/main.cpp Wed Jun 23 19:08:38 2010 +0300
@@ -44,9 +44,9 @@
#include <QDeclarativeComponent>
#include <QDebug>
#include <QDeclarativeView>
-#include <QContactManager>
-#include "qmlcontactsa.h"
-#include "qmlcontact.h"
+#include <qcontactmanager.h>
+#include "qmlcontactmodel.h"
+
QT_USE_NAMESPACE
QTM_USE_NAMESPACE
@@ -56,10 +56,8 @@
QDeclarativeEngine engine;
- QDeclarativeComponent component(&engine, ":example.qml");
- qmlRegisterType<QmlContact>("QmlContact", 1, 0, "QmlContact");
- qmlRegisterType<QMLContactManagerAsync>("QMLContactManagerAsync", 1, 0, "QMLContactManagerAsync");
+ qmlRegisterType<QMLContactModel>("QmlContactModel", 1, 0, "QmlContactModel");
QWidget *b = new QWidget();
QVBoxLayout *vbox = new QVBoxLayout;
@@ -71,7 +69,6 @@
view->setSource(QUrl("qrc:/example.qml"));
vbox->addWidget(view);
b->setLayout(vbox);
-// b->resize(800,480);
b->show();
return app.exec();