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

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    99
    1010#ifndef QWT_NULL_PAINT_DEVICE_H
    11 #define QWT_NULL_PAINT_DEVICE_H 1
     11#define QWT_NULL_PAINT_DEVICE_H
    1212
    1313#include "qwt_global.h"
     14
    1415#include <qpaintdevice.h>
    1516#include <qpaintengine.h>
    1617
    1718/*!
    18   \brief A null paint device doing nothing
     19   \brief A null paint device doing nothing
    1920
    20   Sometimes important layout/rendering geometries are not
    21   available or changeable from the public Qt class interface.
    22   ( f.e hidden in the style implementation ).
     21   Sometimes important layout/rendering geometries are not
     22   available or changeable from the public Qt class interface.
     23   ( f.e hidden in the style implementation ).
    2324
    24   QwtNullPaintDevice can be used to manipulate or filter out
    25   this information by analyzing the stream of paint primitives.
     25   QwtNullPaintDevice can be used to manipulate or filter out
     26   this information by analyzing the stream of paint primitives.
    2627
    27   F.e. QwtNullPaintDevice is used by QwtPlotCanvas to identify
    28   styled backgrounds with rounded corners.
    29 */
     28   F.e. QwtNullPaintDevice is used by QwtPlotCanvas to identify
     29   styled backgrounds with rounded corners.
     30 */
    3031
    31 class QWT_EXPORT QwtNullPaintDevice: public QPaintDevice
     32class QWT_EXPORT QwtNullPaintDevice : public QPaintDevice
    3233{
    33 public:
     34  public:
    3435    /*!
    35       \brief Render mode
     36       \brief Render mode
    3637
    37       \sa setMode(), mode()
     38       \sa setMode(), mode()
    3839     */
    3940    enum Mode
    … …  
    7576    Mode mode() const;
    7677
    77     virtual QPaintEngine *paintEngine() const;
     78    virtual QPaintEngine* paintEngine() const QWT_OVERRIDE;
    7879
    79     virtual int metric( PaintDeviceMetric ) const;
     80    virtual int metric( PaintDeviceMetric ) const QWT_OVERRIDE;
    8081
    81     virtual void drawRects(const QRect *, int );
    82     virtual void drawRects(const QRectF *, int );
     82    virtual void drawRects(const QRect*, int );
     83    virtual void drawRects(const QRectF*, int );
    8384
    84     virtual void drawLines(const QLine *, int );
    85     virtual void drawLines(const QLineF *, int );
     85    virtual void drawLines(const QLine*, int );
     86    virtual void drawLines(const QLineF*, int );
    8687
    87     virtual void drawEllipse(const QRectF &);
    88     virtual void drawEllipse(const QRect &);
     88    virtual void drawEllipse(const QRectF&);
     89    virtual void drawEllipse(const QRect&);
    8990
    90     virtual void drawPath(const QPainterPath &);
     91    virtual void drawPath(const QPainterPath&);
    9192
    92     virtual void drawPoints(const QPointF *, int );
    93     virtual void drawPoints(const QPoint *, int );
     93    virtual void drawPoints(const QPointF*, int );
     94    virtual void drawPoints(const QPoint*, int );
    9495
    95     virtual void drawPolygon(
    96         const QPointF *, int , QPaintEngine::PolygonDrawMode );
     96    virtual void drawPolygon( const QPointF*, int,
     97        QPaintEngine::PolygonDrawMode );
    9798
    98     virtual void drawPolygon(
    99         const QPoint *, int , QPaintEngine::PolygonDrawMode );
     99    virtual void drawPolygon( const QPoint*, int,
     100        QPaintEngine::PolygonDrawMode );
    100101
    101     virtual void drawPixmap(const QRectF &,
    102         const QPixmap &, const QRectF &);
     102    virtual void drawPixmap(const QRectF&,
     103        const QPixmap&, const QRectF&);
    103104
    104     virtual void drawTextItem(const QPointF &, const QTextItem &);
     105    virtual void drawTextItem(const QPointF&, const QTextItem&);
    105106
    106     virtual void drawTiledPixmap(const QRectF &,
    107         const QPixmap &, const QPointF & );
     107    virtual void drawTiledPixmap(const QRectF&,
     108        const QPixmap&, const QPointF& );
    108109
    109     virtual void drawImage(const QRectF &,
    110         const QImage &, const QRectF &, Qt::ImageConversionFlags );
     110    virtual void drawImage(const QRectF&, const QImage&,
     111        const QRectF&, Qt::ImageConversionFlags );
    111112
    112     virtual void updateState( const QPaintEngineState & );
     113    virtual void updateState( const QPaintEngineState& );
    113114
    114 protected:
     115  protected:
    115116    //! \return Size needed to implement metric()
    116117    virtual QSize sizeMetrics() const = 0;
    117118
    118 private:
     119  private:
    119120    class PaintEngine;
    120     PaintEngine *d_engine;
     121    PaintEngine* m_engine;
    121122
    122123    class PrivateData;
    123     PrivateData *d_data;
     124    PrivateData* m_data;
    124125};
    125126
Note: See TracChangeset for help on using the changeset viewer.