Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_legend_data.h


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_legend_data.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1212
    1313#include "qwt_global.h"
    14 #include "qwt_text.h"
    15 #include "qwt_graphic.h"
     14
    1615#include <qvariant.h>
    17 #include <qpixmap.h>
    1816#include <qmap.h>
    1917
     18class QwtText;
     19class QwtGraphic;
     20
    2021/*!
    21   \brief Attributes of an entry on a legend
     22   \brief Attributes of an entry on a legend
    2223
    23   QwtLegendData is an abstract container ( like QAbstractModel )
    24   to exchange attributes, that are only known between to
    25   the plot item and the legend.
     24   QwtLegendData is an abstract container ( like QAbstractModel )
     25   to exchange attributes, that are only known between to
     26   the plot item and the legend.
    2627
    27   By overloading QwtPlotItem::legendData() any other set of attributes
    28   could be used, that can be handled by a modified ( or completely
    29   different ) implementation of a legend.
     28   By overloading QwtPlotItem::legendData() any other set of attributes
     29   could be used, that can be handled by a modified ( or completely
     30   different ) implementation of a legend.
    3031
    31   \sa QwtLegend, QwtPlotLegendItem
    32   \note The stockchart example implements a legend as a tree
     32   \sa QwtLegend, QwtPlotLegendItem
     33   \note The stockchart example implements a legend as a tree
    3334        with checkable items
    3435 */
    3536class QWT_EXPORT QwtLegendData
    3637{
    37 public:
     38  public:
    3839    //! Mode defining how a legend entry interacts
    3940    enum Mode
    … …  
    4950    };
    5051
    51     //! Identifier how to interprete a QVariant
     52    //! Identifier how to interpret a QVariant
    5253    enum Role
    5354    {
    … …  
    6869    ~QwtLegendData();
    6970
    70     void setValues( const QMap<int, QVariant> & );
    71     const QMap<int, QVariant> &values() const;
     71    void setValues( const QMap< int, QVariant >& );
     72    const QMap< int, QVariant >& values() const;
    7273
    73     void setValue( int role, const QVariant & );
     74    void setValue( int role, const QVariant& );
    7475    QVariant value( int role ) const;
    7576
    … …  
    8182    Mode mode() const;
    8283
    83 private:
    84     QMap<int, QVariant> d_map;
     84  private:
     85    QMap< int, QVariant > m_map;
    8586};
    8687
Note: See TracChangeset for help on using the changeset viewer.