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

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    3636             by another operation ( like changing scales ) and nothing needs
    3737             to be erased.
    38 */
    39 class QWT_EXPORT QwtPlotDirectPainter: public QObject
     38 */
     39class QWT_EXPORT QwtPlotDirectPainter : public QObject
    4040{
    41 public:
     41  public:
    4242    /*!
    43       \brief Paint attributes
    44       \sa setAttribute(), testAttribute(), drawSeries()
    45     */
     43       \brief Paint attributes
     44       \sa setAttribute(), testAttribute(), drawSeries()
     45     */
    4646    enum Attribute
    4747    {
    4848        /*!
    49           Initializing a QPainter is an expensive operation.
    50           When AtomicPainter is set each call of drawSeries() opens/closes
    51           a temporary QPainter. Otherwise QwtPlotDirectPainter tries to
    52           use the same QPainter as long as possible.
     49           Initializing a QPainter is an expensive operation.
     50           When AtomicPainter is set each call of drawSeries() opens/closes
     51           a temporary QPainter. Otherwise QwtPlotDirectPainter tries to
     52           use the same QPainter as long as possible.
    5353         */
    5454        AtomicPainter = 0x01,
    5555
    5656        /*!
    57           When FullRepaint is set the plot canvas is explicitly repainted
    58           after the samples have been rendered.
     57           When FullRepaint is set the plot canvas is explicitly repainted
     58           after the samples have been rendered.
    5959         */
    6060        FullRepaint = 0x02,
    6161
    6262        /*!
    63           When QwtPlotCanvas::BackingStore is enabled the painter
    64           has to paint to the backing store and the widget. In certain
    65           situations/environments it might be faster to paint to
    66           the backing store only and then copy the backing store to the canvas.
    67           This flag can also be useful for settings, where Qt fills the
    68           the clip region with the widget background.
     63           When QwtPlotCanvas::BackingStore is enabled the painter
     64           has to paint to the backing store and the widget. In certain
     65           situations/environments it might be faster to paint to
     66           the backing store only and then copy the backing store to the canvas.
     67           This flag can also be useful for settings, where Qt fills the
     68           the clip region with the widget background.
    6969         */
    7070        CopyBackingStore = 0x04
    7171    };
    7272
    73     //! Paint attributes
    74     typedef QFlags<Attribute> Attributes;
     73    Q_DECLARE_FLAGS( Attributes, Attribute )
    7574
    76     QwtPlotDirectPainter( QObject *parent = NULL );
     75    explicit QwtPlotDirectPainter( QObject* parent = NULL );
    7776    virtual ~QwtPlotDirectPainter();
    7877
    … …  
    8382    bool hasClipping() const;
    8483
    85     void setClipRegion( const QRegion & );
     84    void setClipRegion( const QRegion& );
    8685    QRegion clipRegion() const;
    8786
    88     void drawSeries( QwtPlotSeriesItem *, int from, int to );
     87    void drawSeries( QwtPlotSeriesItem*, int from, int to );
    8988    void reset();
    9089
    91     virtual bool eventFilter( QObject *, QEvent * );
     90    virtual bool eventFilter( QObject*, QEvent* ) QWT_OVERRIDE;
    9291
    93 private:
     92  private:
    9493    class PrivateData;
    95     PrivateData *d_data;
     94    PrivateData* m_data;
    9695};
    9796
Note: See TracChangeset for help on using the changeset viewer.