Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_textlabel.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_textlabel.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_PLOT_TEXT_LABEL_H
    11 #define QWT_PLOT_TEXT_LABEL_H 1
     11#define QWT_PLOT_TEXT_LABEL_H
    1212
    1313#include "qwt_global.h"
    1414#include "qwt_plot_item.h"
    15 #include "qwt_text.h"
     15
     16class QwtText;
    1617
    1718/*!
    18   \brief A plot item, which displays a text label
     19   \brief A plot item, which displays a text label
    1920
    20   QwtPlotTextLabel displays a text label aligned to the plot canvas.
     21   QwtPlotTextLabel displays a text label aligned to the plot canvas.
    2122
    22   In opposite to QwtPlotMarker the position of the label is unrelated to
    23   plot coordinates.
     23   In opposite to QwtPlotMarker the position of the label is unrelated to
     24   plot coordinates.
    2425
    25   As drawing a text is an expensive operation the label is cached
    26   in a pixmap to speed up replots.
     26   As drawing a text is an expensive operation the label is cached
     27   in a pixmap to speed up replots.
    2728
    28   \par Example
     29   \par Example
    2930    The following code shows how to add a title.
    3031    \code
    … …  
    4041      titleItem->attach( plot );
    4142    \endcode
    42   \endpar
    4343
    44   \sa QwtPlotMarker
    45 */
     44   \sa QwtPlotMarker
     45 */
    4646
    47 class QWT_EXPORT QwtPlotTextLabel: public QwtPlotItem
     47class QWT_EXPORT QwtPlotTextLabel : public QwtPlotItem
    4848{
    49 public:
     49  public:
    5050    QwtPlotTextLabel();
    5151    virtual ~QwtPlotTextLabel();
    5252
    53     virtual int rtti() const;
     53    virtual int rtti() const QWT_OVERRIDE;
    5454
    55     void setText( const QwtText & );
     55    void setText( const QwtText& );
    5656    QwtText text() const;
    5757
    … …  
    5959    int margin() const;
    6060
    61     virtual QRectF textRect( const QRectF &, const QSizeF & ) const;
     61    virtual QRectF textRect( const QRectF&, const QSizeF& ) const;
    6262
    63 protected:
    64     virtual void draw( QPainter *,
    65         const QwtScaleMap &, const QwtScaleMap &,
    66         const QRectF &) const;
     63  protected:
     64    virtual void draw( QPainter*,
     65        const QwtScaleMap&, const QwtScaleMap&,
     66        const QRectF&) const QWT_OVERRIDE;
    6767
    6868    void invalidateCache();
    6969
    70 private:
     70  private:
    7171    class PrivateData;
    72     PrivateData *d_data;
     72    PrivateData* m_data;
    7373};
    7474
Note: See TracChangeset for help on using the changeset viewer.