Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_zoneitem.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_plot_zoneitem.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1313#include "qwt_global.h"
    1414#include "qwt_plot_item.h"
    15 #include "qwt_interval.h"
    1615
     16#include <qnamespace.h>
     17
     18class QwtInterval;
    1719class QPen;
    1820class QBrush;
    1921
    2022/*!
    21   \brief A plot item, which displays a zone
     23   \brief A plot item, which displays a zone
    2224
    23   A horizontal zone highlights an interval of the y axis - a vertical
    24   zone an interval of the x axis - and is unbounded in the opposite direction.
    25   It is filled with a brush and its border lines are optionally displayed with a pen.
     25   A horizontal zone highlights an interval of the y axis - a vertical
     26   zone an interval of the x axis - and is unbounded in the opposite direction.
     27   It is filled with a brush and its border lines are optionally displayed with a pen.
    2628
    27   \note For displaying an area that is bounded for x and y coordinates
     29   \note For displaying an area that is bounded for x and y coordinates
    2830        use QwtPlotShapeItem
    29 */
     31 */
    3032
    31 class QWT_EXPORT QwtPlotZoneItem:
     33class QWT_EXPORT QwtPlotZoneItem :
    3234    public QwtPlotItem
    3335{
    34 public:
     36  public:
    3537    explicit QwtPlotZoneItem();
    3638    virtual ~QwtPlotZoneItem();
    3739
    38     virtual int rtti() const;
     40    virtual int rtti() const QWT_OVERRIDE;
    3941
    4042    void setOrientation( Qt::Orientation );
    41     Qt::Orientation orientation();
     43    Qt::Orientation orientation() const;
    4244
    4345    void setInterval( double min, double max );
    44     void setInterval( const QwtInterval & );
     46    void setInterval( const QwtInterval& );
    4547    QwtInterval interval() const;
    4648
    47     void setPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    48     void setPen( const QPen & );
    49     const QPen &pen() const;
     49    void setPen( const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
     50    void setPen( const QPen& );
     51    const QPen& pen() const;
    5052
    51     void setBrush( const QBrush & );
    52     const QBrush &brush() const;
     53    void setBrush( const QBrush& );
     54    const QBrush& brush() const;
    5355
    54     virtual void draw( QPainter *,
    55         const QwtScaleMap &, const QwtScaleMap &,
    56         const QRectF &) const;
     56    virtual void draw( QPainter*,
     57        const QwtScaleMap&, const QwtScaleMap&,
     58        const QRectF& canvasRect ) const QWT_OVERRIDE;
    5759
    58     virtual QRectF boundingRect() const;
     60    virtual QRectF boundingRect() const QWT_OVERRIDE;
    5961
    60 private:
     62  private:
    6163    class PrivateData;
    62     PrivateData *d_data;
     64    PrivateData* m_data;
    6365};
    6466
Note: See TracChangeset for help on using the changeset viewer.