From 8585ba96eddafaeefea8ca493c6a6d1bf9635cfc Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Mon, 11 Jan 2010 13:20:12 +1000 Subject: Compile with QT_NO_CURSOR. --- src/declarative/qml/qmlmetatype.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/declarative/qml/qmlmetatype.cpp b/src/declarative/qml/qmlmetatype.cpp index 0b79a21..d9c007d 100644 --- a/src/declarative/qml/qmlmetatype.cpp +++ b/src/declarative/qml/qmlmetatype.cpp @@ -1102,9 +1102,11 @@ bool QmlMetaType::copy(int type, void *data, const void *copy) case QMetaType::QBitmap: *static_cast(data) = *static_cast(copy); return true; +#ifndef QT_NO_CURSOR case QMetaType::QCursor: *static_cast(data) = *static_cast(copy); return true; +#endif case QMetaType::QSizePolicy: *static_cast(data) = *static_cast(copy); return true; @@ -1308,9 +1310,11 @@ bool QmlMetaType::copy(int type, void *data, const void *copy) case QMetaType::QBitmap: *static_cast(data) = NS(QBitmap)(); return true; +#ifndef QT_NO_CURSOR case QMetaType::QCursor: *static_cast(data) = NS(QCursor)(); return true; +#endif case QMetaType::QSizePolicy: *static_cast(data) = NS(QSizePolicy)(); return true; -- cgit v0.12