Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_legend_label.h


Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (4 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_legend_label.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#include "qwt_text_label.h"
    1415#include "qwt_legend_data.h"
    15 #include "qwt_text.h"
    16 #include "qwt_text_label.h"
    17 #include <qpixmap.h>
    1816
    19 class QwtLegendData;
     17class QwtText;
    2018
    2119/*!
    22   \brief A widget representing something on a QwtLegend.
    23 */
    24 class QWT_EXPORT QwtLegendLabel: public QwtTextLabel
     20   \brief A widget representing something on a QwtLegend.
     21 */
     22class QWT_EXPORT QwtLegendLabel : public QwtTextLabel
    2523{
    2624    Q_OBJECT
    27 public:
    28     explicit QwtLegendLabel( QWidget *parent = 0 );
     25  public:
     26    explicit QwtLegendLabel( QWidget* parent = 0 );
    2927    virtual ~QwtLegendLabel();
    3028
    31     void setData( const QwtLegendData & );
    32     const QwtLegendData &data() const;
     29    void setData( const QwtLegendData& );
     30    const QwtLegendData& data() const;
    3331
    3432    void setItemMode( QwtLegendData::Mode );
    … …  
    3836    int spacing() const;
    3937
    40     virtual void setText( const QwtText & );
     38    virtual void setText( const QwtText& ) QWT_OVERRIDE;
    4139
    42     void setIcon( const QPixmap & );
     40    void setIcon( const QPixmap& );
    4341    QPixmap icon() const;
    4442
    45     virtual QSize sizeHint() const;
     43    virtual QSize sizeHint() const QWT_OVERRIDE;
    4644
    4745    bool isChecked() const;
    4846
    49 public Q_SLOTS:
     47  public Q_SLOTS:
    5048    void setChecked( bool on );
    5149
    52 Q_SIGNALS:
     50  Q_SIGNALS:
    5351    //! Signal, when the legend item has been clicked
    5452    void clicked();
    … …  
    6361    void checked( bool );
    6462
    65 protected:
     63  protected:
    6664    void setDown( bool );
    6765    bool isDown() const;
    6866
    69     virtual void paintEvent( QPaintEvent * );
    70     virtual void mousePressEvent( QMouseEvent * );
    71     virtual void mouseReleaseEvent( QMouseEvent * );
    72     virtual void keyPressEvent( QKeyEvent * );
    73     virtual void keyReleaseEvent( QKeyEvent * );
     67    virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
     68    virtual void mousePressEvent( QMouseEvent* ) QWT_OVERRIDE;
     69    virtual void mouseReleaseEvent( QMouseEvent* ) QWT_OVERRIDE;
     70    virtual void keyPressEvent( QKeyEvent* ) QWT_OVERRIDE;
     71    virtual void keyReleaseEvent( QKeyEvent* ) QWT_OVERRIDE;
    7472
    75 private:
     73  private:
    7674    class PrivateData;
    77     PrivateData *d_data;
     75    PrivateData* m_data;
    7876};
    7977
Note: See TracChangeset for help on using the changeset viewer.