From 072b70c9521d507b0a4cdae379f2874d0e49d6df Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Wed, 28 Oct 2009 14:03:26 +1000 Subject: Use QML_DECLARE_TYPEINFO attached properties detection on all platforms. --- src/declarative/qml/qmlprivate.h | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/declarative/qml/qmlprivate.h b/src/declarative/qml/qmlprivate.h index 3e1a7e0..1b57f03 100644 --- a/src/declarative/qml/qmlprivate.h +++ b/src/declarative/qml/qmlprivate.h @@ -132,43 +132,11 @@ namespace QmlPrivate } }; -#if defined(Q_CC_MSVC) - template - class has_attachedPropertiesMember - { - public: - __if_exists(T::qmlAttachedProperties) { - static bool const value = true; - } - __if_not_exists(T::qmlAttachedProperties) { - static bool const value = false; - } - }; -#elif defined(Q_OS_SYMBIAN) template struct has_attachedPropertiesMember { static bool const value = QmlTypeInfo::hasAttachedProperties; }; -#else - template - class has_attachedPropertiesMember - { - typedef int yes_type; - typedef char no_type; - template - struct Selector {}; - - template - static yes_type test(Selector*); - - template - static no_type test(...); - - public: - static bool const value = sizeof(test(0)) == sizeof(yes_type); - }; -#endif template class has_attachedPropertiesMethod -- cgit v0.12