summaryrefslogtreecommitdiffstats
path: root/src/imports/contacts/qdeclarativecontactdetail.cpp
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2014-01-06 10:38:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-06 10:26:36 +0100
commitef85e412310fd155508031021c57eedfa5622e83 (patch)
treec55a9b1532b92cc6cf7197185a12cb95994ec1ea /src/imports/contacts/qdeclarativecontactdetail.cpp
parent75d049f770f86e156e0249f0aa4fad0f2d98e56c (diff)
Move the declarative bindings out of the module namespace
This fixes a broken types in QML (the typical error from engine is like "QMetaProperty::read: Unable to handle unregistered datatype 'QDeclarativeOrganizerItemType::ItemType' for property 'QtOrganizer::QDeclarativeOrganizerEvent::itemType") This reverts 75d049f770f86 and magically fixes related issues missed in it. Task-number: QTBUG-35276 Change-Id: I792cf2bb3ff8f5ea7b59438ddf3107009eb2bc63 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/imports/contacts/qdeclarativecontactdetail.cpp')
-rw-r--r--src/imports/contacts/qdeclarativecontactdetail.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/imports/contacts/qdeclarativecontactdetail.cpp b/src/imports/contacts/qdeclarativecontactdetail.cpp
index 139ccbc01..07cc22561 100644
--- a/src/imports/contacts/qdeclarativecontactdetail.cpp
+++ b/src/imports/contacts/qdeclarativecontactdetail.cpp
@@ -44,6 +44,10 @@
#include "qcontactdetails.h"
#include <QDebug>
+QTCONTACTS_USE_NAMESPACE
+
+QT_BEGIN_NAMESPACE
+
/* ==================== QDeclarativeContactDetail ======================= */
/*!
@@ -58,8 +62,6 @@
The ContactDetail element is part of the \b{QtContacts} module.
*/
-QT_BEGIN_NAMESPACE_CONTACTS
-
QDeclarativeContactDetail::QDeclarativeContactDetail(QObject* parent)
:QObject(parent)
{
@@ -1301,4 +1303,4 @@ QDeclarativeContactDetail *QDeclarativeContactDetailFactory::createContactDetail
#include "moc_qdeclarativecontactdetail_p.cpp"
-QT_END_NAMESPACE_CONTACTS
+QT_END_NAMESPACE