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_plot_seriesitem.cpp

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    99
    1010#include "qwt_plot_seriesitem.h"
     11#include "qwt_scale_div.h"
     12#include "qwt_text.h"
    1113
    1214class QwtPlotSeriesItem::PrivateData
    1315{
    14 public:
    15     PrivateData():
    16         orientation( Qt::Vertical )
     16  public:
     17    PrivateData()
     18        : orientation( Qt::Vertical )
    1719    {
    1820    }
    … …  
    2224
    2325/*!
    24   Constructor
    25   \param title Title of the curve
    26 */
    27 QwtPlotSeriesItem::QwtPlotSeriesItem( const QwtText &title ):
    28     QwtPlotItem( title )
     26   Constructor
     27   \param title Title of the curve
     28 */
     29QwtPlotSeriesItem::QwtPlotSeriesItem( const QwtText& title )
     30    : QwtPlotItem( title )
    2931{
    30     d_data = new PrivateData();
     32    m_data = new PrivateData();
    3133    setItemInterest( QwtPlotItem::ScaleInterest, true );
    3234}
    3335
    3436/*!
    35   Constructor
    36   \param title Title of the curve
    37 */
    38 QwtPlotSeriesItem::QwtPlotSeriesItem( const QString &title ):
    39     QwtPlotItem( QwtText( title ) )
     37   Constructor
     38   \param title Title of the curve
     39 */
     40QwtPlotSeriesItem::QwtPlotSeriesItem( const QString& title )
     41    : QwtPlotItem( QwtText( title ) )
    4042{
    41     d_data = new PrivateData();
     43    m_data = new PrivateData();
    4244    setItemInterest( QwtPlotItem::ScaleInterest, true );
    4345}
    … …  
    4648QwtPlotSeriesItem::~QwtPlotSeriesItem()
    4749{
    48     delete d_data;
     50    delete m_data;
    4951}
    5052
    5153/*!
    52   Set the orientation of the item.
     54   Set the orientation of the item.
    5355
    54   The orientation() might be used in specific way by a plot item.
    55   F.e. a QwtPlotCurve uses it to identify how to display the curve
    56   int QwtPlotCurve::Steps or QwtPlotCurve::Sticks style.
     56   The orientation() might be used in specific way by a plot item.
     57   F.e. a QwtPlotCurve uses it to identify how to display the curve
     58   int QwtPlotCurve::Steps or QwtPlotCurve::Sticks style.
    5759
    58   \sa orientation()
    59 */
     60   \sa orientation()
     61 */
    6062void QwtPlotSeriesItem::setOrientation( Qt::Orientation orientation )
    6163{
    62     if ( d_data->orientation != orientation )
     64    if ( m_data->orientation != orientation )
    6365    {
    64         d_data->orientation = orientation;
     66        m_data->orientation = orientation;
    6567
    6668        legendChanged();
    … …  
    7072
    7173/*!
    72   \return Orientation of the plot item
    73   \sa setOrientation()
    74 */
     74   \return Orientation of the plot item
     75   \sa setOrientation()
     76 */
    7577Qt::Orientation QwtPlotSeriesItem::orientation() const
    7678{
    77     return d_data->orientation;
     79    return m_data->orientation;
    7880}
    7981
    8082/*!
    81   \brief Draw the complete series
     83   \brief Draw the complete series
    8284
    83   \param painter Painter
    84   \param xMap Maps x-values into pixel coordinates.
    85   \param yMap Maps y-values into pixel coordinates.
    86   \param canvasRect Contents rectangle of the canvas
    87 */
    88 void QwtPlotSeriesItem::draw( QPainter *painter,
    89         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    90         const QRectF &canvasRect ) const
     85   \param painter Painter
     86   \param xMap Maps x-values into pixel coordinates.
     87   \param yMap Maps y-values into pixel coordinates.
     88   \param canvasRect Contents rectangle of the canvas
     89 */
     90void QwtPlotSeriesItem::draw( QPainter* painter,
     91    const QwtScaleMap& xMap, const QwtScaleMap& yMap,
     92    const QRectF& canvasRect ) const
    9193{
    9294    drawSeries( painter, xMap, yMap, canvasRect, 0, -1 );
    … …  
    99101
    100102void QwtPlotSeriesItem::updateScaleDiv(
    101     const QwtScaleDiv &xScaleDiv, const QwtScaleDiv &yScaleDiv )
     103    const QwtScaleDiv& xScaleDiv, const QwtScaleDiv& yScaleDiv )
    102104{
    103105    const QRectF rect = QRectF(
Note: See TracChangeset for help on using the changeset viewer.