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

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_interval_symbol.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 <qpen.h>
    15 #include <qsize.h>
     14#include <qnamespace.h>
    1615
    1716class QPainter;
    18 class QRect;
     17class QPen;
     18class QBrush;
    1919class QPointF;
     20class QColor;
    2021
    2122/*!
    22   \brief A drawing primitive for displaying an interval like an error bar
     23   \brief A drawing primitive for displaying an interval like an error bar
    2324
    24   \sa QwtPlotIntervalCurve
    25 */
     25   \sa QwtPlotIntervalCurve
     26 */
    2627class QWT_EXPORT QwtIntervalSymbol
    2728{
    28 public:
     29  public:
    2930    //! Symbol style
    3031    enum Style
    … …  
    3435
    3536        /*!
    36           The symbol displays a line with caps at the beginning/end.
    37           The size of the caps depends on the symbol width().
     37           The symbol displays a line with caps at the beginning/end.
     38           The size of the caps depends on the symbol width().
    3839         */
    3940        Bar,
    4041
    4142        /*!
    42           The symbol displays a plain rectangle using pen() and brush().
    43           The size of the rectangle depends on the translated interval and
    44           the width(),
     43           The symbol displays a plain rectangle using pen() and brush().
     44           The size of the rectangle depends on the translated interval and
     45           the width(),
    4546         */
    4647        Box,
    4748
    4849        /*!
    49           Styles >= UserSymbol are reserved for derived
    50           classes of QwtIntervalSymbol that overload draw() with
    51           additional application specific symbol types.
     50           Styles >= UserSymbol are reserved for derived
     51           classes of QwtIntervalSymbol that overload draw() with
     52           additional application specific symbol types.
    5253         */
    5354        UserSymbol = 1000
    5455    };
    5556
    56 public:
    57     QwtIntervalSymbol( Style = NoSymbol );
    58     QwtIntervalSymbol( const QwtIntervalSymbol & );
     57  public:
     58    explicit QwtIntervalSymbol( Style = NoSymbol );
     59    QwtIntervalSymbol( const QwtIntervalSymbol& );
     60
    5961    virtual ~QwtIntervalSymbol();
    6062
    61     QwtIntervalSymbol &operator=( const QwtIntervalSymbol & );
    62     bool operator==( const QwtIntervalSymbol & ) const;
    63     bool operator!=( const QwtIntervalSymbol & ) const;
     63    QwtIntervalSymbol& operator=( const QwtIntervalSymbol& );
     64    bool operator==( const QwtIntervalSymbol& ) const;
     65    bool operator!=( const QwtIntervalSymbol& ) const;
    6466
    6567    void setWidth( int );
    6668    int width() const;
    6769
    68     void setBrush( const QBrush & );
     70    void setBrush( const QBrush& );
    6971    const QBrush& brush() const;
    7072
    71     void setPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    72     void setPen( const QPen & );
     73    void setPen( const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
     74    void setPen( const QPen& );
    7375    const QPen& pen() const;
    7476
    … …  
    7678    Style style() const;
    7779
    78     virtual void draw( QPainter *, Qt::Orientation,
     80    virtual void draw( QPainter*, Qt::Orientation,
    7981        const QPointF& from, const QPointF& to ) const;
    8082
    81 private:
     83  private:
    8284    class PrivateData;
    83     PrivateData* d_data;
     85    PrivateData* m_data;
    8486};
    8587
Note: See TracChangeset for help on using the changeset viewer.