summaryrefslogtreecommitdiffstats
path: root/src/imports/contacts/qdeclarativecontact_p.h
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/qdeclarativecontact_p.h
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/qdeclarativecontact_p.h')
-rw-r--r--src/imports/contacts/qdeclarativecontact_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/contacts/qdeclarativecontact_p.h b/src/imports/contacts/qdeclarativecontact_p.h
index 2cd00953c..ce6a9d212 100644
--- a/src/imports/contacts/qdeclarativecontact_p.h
+++ b/src/imports/contacts/qdeclarativecontact_p.h
@@ -49,7 +49,9 @@
#include "qdeclarativecontactdetail_p.h"
#include <QtQml/qqmllist.h>
-QT_BEGIN_NAMESPACE_CONTACTS
+QTCONTACTS_USE_NAMESPACE
+
+QT_BEGIN_NAMESPACE
class QDeclarativeContact : public QObject
{
@@ -209,9 +211,7 @@ private:
static int _q_detail_count(QQmlListProperty<QDeclarativeContactDetail> *property);
};
-QT_END_NAMESPACE_CONTACTS
-
-QTCONTACTS_USE_NAMESPACE
+QT_END_NAMESPACE
QML_DECLARE_TYPE(QDeclarativeContact)