summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-06-17 05:00:46 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-06-17 05:00:46 (GMT)
commit4b29e52cad8d719d382110349e29c127db45036a (patch)
tree9359ecbad4fd289e949850f88e4afbf42b9a1d7f /src
parenta7a33c7ec0b6fff8822482c814d04b0d9735e85c (diff)
downloadQt-4b29e52cad8d719d382110349e29c127db45036a.zip
Qt-4b29e52cad8d719d382110349e29c127db45036a.tar.gz
Qt-4b29e52cad8d719d382110349e29c127db45036a.tar.bz2
VC2008 Compile
Diffstat (limited to 'src')
-rw-r--r--src/declarative/qml/qmlprivate.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlprivate.h b/src/declarative/qml/qmlprivate.h
index 21a1164..ed1304a 100644
--- a/src/declarative/qml/qmlprivate.h
+++ b/src/declarative/qml/qmlprivate.h
@@ -123,6 +123,19 @@ namespace QmlPrivate
}
};
+#if defined(Q_CC_MSVC)
+ template <typename T>
+ class has_attachedPropertiesMember
+ {
+ public:
+ __if_exists(T::qmlAttachedProperties) {
+ static bool const value = true;
+ }
+ __if_not_exists(T::qmlAttachedProperties) {
+ static bool const value = false;
+ }
+ };
+#else
template <typename T>
class has_attachedPropertiesMember
{
@@ -140,6 +153,7 @@ namespace QmlPrivate
public:
static bool const value = sizeof(test<T>(0)) == sizeof(yes_type);
};
+#endif
template <typename T, bool hasMember>
class has_attachedPropertiesMethod