Index: trunk/BNC/qwt/qwt_point_3d.cpp
===================================================================
--- trunk/BNC/qwt/qwt_point_3d.cpp	(revision 9383)
+++ trunk/BNC/qwt/qwt_point_3d.cpp	(revision 11158)
@@ -1,3 +1,3 @@
-/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
+/******************************************************************************
  * Qwt Widget Library
  * Copyright (C) 1997   Josef Wilgen
@@ -10,10 +10,36 @@
 #include "qwt_point_3d.h"
 
+#if QT_VERSION >= 0x050200
+
+static QwtPoint3D qwtPointToPoint3D( const QPointF& point )
+{
+    return QwtPoint3D( point );
+}
+
+#endif
+
+namespace
+{
+    static const struct RegisterQwtPoint3D
+    {
+        inline RegisterQwtPoint3D()
+        {
+            qRegisterMetaType< QwtPoint3D >();
+
+#if QT_VERSION >= 0x050200
+            QMetaType::registerConverter< QPointF, QwtPoint3D >( qwtPointToPoint3D );
+#endif
+        }
+    } qwtRegisterQwtPoint3D;
+}
+
 #ifndef QT_NO_DEBUG_STREAM
 
-QDebug operator<<( QDebug debug, const QwtPoint3D &point )
+#include <qdebug.h>
+
+QDebug operator<<( QDebug debug, const QwtPoint3D& point )
 {
     debug.nospace() << "QwtPoint3D(" << point.x()
-        << "," << point.y() << "," << point.z() << ")";
+                    << "," << point.y() << "," << point.z() << ")";
     return debug.space();
 }
