Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_point_3d.cpp


Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (3 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_point_3d.cpp

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1010#include "qwt_point_3d.h"
    1111
     12#if QT_VERSION >= 0x050200
     13
     14static QwtPoint3D qwtPointToPoint3D( const QPointF& point )
     15{
     16    return QwtPoint3D( point );
     17}
     18
     19#endif
     20
     21namespace
     22{
     23    static const struct RegisterQwtPoint3D
     24    {
     25        inline RegisterQwtPoint3D()
     26        {
     27            qRegisterMetaType< QwtPoint3D >();
     28
     29#if QT_VERSION >= 0x050200
     30            QMetaType::registerConverter< QPointF, QwtPoint3D >( qwtPointToPoint3D );
     31#endif
     32        }
     33    } qwtRegisterQwtPoint3D;
     34}
     35
    1236#ifndef QT_NO_DEBUG_STREAM
    1337
    14 QDebug operator<<( QDebug debug, const QwtPoint3D &point )
     38#include <qdebug.h>
     39
     40QDebug operator<<( QDebug debug, const QwtPoint3D& point )
    1541{
    1642    debug.nospace() << "QwtPoint3D(" << point.x()
    17         << "," << point.y() << "," << point.z() << ")";
     43                    << "," << point.y() << "," << point.z() << ")";
    1844    return debug.space();
    1945}
Note: See TracChangeset for help on using the changeset viewer.