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_painter_command.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
    1415#include <qpaintengine.h>
    1516#include <qpixmap.h>
    … …  
    2122
    2223/*!
    23   QwtPainterCommand represents the attributes of a paint operation
    24   how it is used between QPainter and QPaintDevice
     24   QwtPainterCommand represents the attributes of a paint operation
     25   how it is used between QPainter and QPaintDevice
    2526
    26   It is used by QwtGraphic to record and replay paint operations
     27   It is used by QwtGraphic to record and replay paint operations
    2728
    28   \sa QwtGraphic::commands()
     29   \sa QwtGraphic::commands()
    2930 */
    3031
    3132class QWT_EXPORT QwtPainterCommand
    3233{
    33 public:
     34  public:
    3435    //! Type of the paint command
    3536    enum Type
    … …  
    7980        Qt::BGMode backgroundMode;
    8081        QFont font;
    81         QMatrix matrix;
    8282        QTransform transform;
    8383
    … …  
    9393
    9494    QwtPainterCommand();
    95     QwtPainterCommand(const QwtPainterCommand &);
     95    QwtPainterCommand(const QwtPainterCommand&);
    9696
    97     QwtPainterCommand( const QPainterPath & );
     97    explicit QwtPainterCommand( const QPainterPath& );
    9898
    99     QwtPainterCommand( const QRectF &rect,
    100             const QPixmap &, const QRectF& subRect );
     99    QwtPainterCommand( const QRectF& rect,
     100        const QPixmap&, const QRectF& subRect );
    101101
    102     QwtPainterCommand( const QRectF &rect,
    103             const QImage &, const QRectF& subRect,
    104             Qt::ImageConversionFlags );
     102    QwtPainterCommand( const QRectF& rect,
     103        const QImage&, const QRectF& subRect,
     104        Qt::ImageConversionFlags );
    105105
    106     QwtPainterCommand( const QPaintEngineState & );
     106    explicit QwtPainterCommand( const QPaintEngineState& );
    107107
    108108    ~QwtPainterCommand();
    109109
    110     QwtPainterCommand &operator=(const QwtPainterCommand & );
     110    QwtPainterCommand& operator=(const QwtPainterCommand& );
    111111
    112112    Type type() const;
    113113
    114     QPainterPath *path();
    115     const QPainterPath *path() const;
     114    QPainterPath* path();
     115    const QPainterPath* path() const;
    116116
    117117    PixmapData* pixmapData();
    … …  
    124124    const StateData* stateData() const;
    125125
    126 private:
    127     void copy( const QwtPainterCommand & );
     126  private:
     127    void copy( const QwtPainterCommand& );
    128128    void reset();
    129129
    130     Type d_type;
     130    Type m_type;
    131131
    132132    union
    133133    {
    134         QPainterPath *d_path;
    135         PixmapData *d_pixmapData;
    136         ImageData *d_imageData;
    137         StateData *d_stateData;
     134        QPainterPath* m_path;
     135        PixmapData* m_pixmapData;
     136        ImageData* m_imageData;
     137        StateData* m_stateData;
    138138    };
    139139};
    … …  
    142142inline QwtPainterCommand::Type QwtPainterCommand::type() const
    143143{
    144     return d_type;
     144    return m_type;
    145145}
    146146
    147147//! \return Painter path to be painted
    148 inline const QPainterPath *QwtPainterCommand::path() const
     148inline const QPainterPath* QwtPainterCommand::path() const
    149149{
    150     return d_path;
     150    return m_path;
    151151}
    152152
    153153//! \return Attributes how to paint a QPixmap
    154 inline const QwtPainterCommand::PixmapData *
     154inline const QwtPainterCommand::PixmapData*
    155155QwtPainterCommand::pixmapData() const
    156156{
    157     return d_pixmapData;
     157    return m_pixmapData;
    158158}
    159159
    160160//! \return Attributes how to paint a QImage
    161 inline const QwtPainterCommand::ImageData *
     161inline const QwtPainterCommand::ImageData*
    162162QwtPainterCommand::imageData() const
    163163{
    164     return d_imageData;
     164    return m_imageData;
    165165}
    166166
    167167//! \return Attributes of a state change
    168 inline const QwtPainterCommand::StateData *
     168inline const QwtPainterCommand::StateData*
    169169QwtPainterCommand::stateData() const
    170170{
    171     return d_stateData;
     171    return m_stateData;
    172172}
    173173
Note: See TracChangeset for help on using the changeset viewer.