mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
* require qwt >=6.2 (and fallback to internal 6.3 if system's qwt doesn't suffice) * debian doesn't have qwt for Qt6 and won't have it for trixie
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
/******************************************************************************
|
|
* Qwt Widget Library
|
|
* Copyright (C) 1997 Josef Wilgen
|
|
* Copyright (C) 2002 Uwe Rathmann
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the Qwt License, Version 1.0
|
|
*****************************************************************************/
|
|
|
|
#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
|
|
|
|
#include <qdebug.h>
|
|
|
|
QDebug operator<<( QDebug debug, const QwtPoint3D& point )
|
|
{
|
|
debug.nospace() << "QwtPoint3D(" << point.x()
|
|
<< "," << point.y() << "," << point.z() << ")";
|
|
return debug.space();
|
|
}
|
|
|
|
#endif
|
|
|