Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_widget_overlay.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_widget_overlay.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1313#include "qwt_global.h"
    1414#include <qwidget.h>
    15 #include <qregion.h>
    1615
    1716class QPainter;
     17class QRegion;
    1818
    1919/*!
    … …  
    3838   \sa QwtPlotCanvas::BackingStore
    3939 */
    40 class QWT_EXPORT QwtWidgetOverlay: public QWidget
     40class QWT_EXPORT QwtWidgetOverlay : public QWidget
    4141{
    42 public:
     42    Q_OBJECT
     43
     44  public:
    4345    /*!
    4446       \brief Mask mode
    … …  
    112114    };
    113115
    114     QwtWidgetOverlay( QWidget* );
     116    explicit QwtWidgetOverlay( QWidget* );
    115117    virtual ~QwtWidgetOverlay();
    116118
    … …  
    121123    RenderMode renderMode() const;
    122124
     125    virtual bool eventFilter( QObject*, QEvent*) QWT_OVERRIDE;
     126
     127  public Q_SLOTS:
    123128    void updateOverlay();
    124129
    125     virtual bool eventFilter( QObject *, QEvent *);
    126 
    127 protected:
    128     virtual void paintEvent( QPaintEvent* event );
    129     virtual void resizeEvent( QResizeEvent* event );
     130  protected:
     131    virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
     132    virtual void resizeEvent( QResizeEvent* ) QWT_OVERRIDE;
    130133
    131134    virtual QRegion maskHint() const;
    … …  
    135138       \param painter Painter
    136139     */
    137     virtual void drawOverlay( QPainter *painter ) const = 0;
     140    virtual void drawOverlay( QPainter* painter ) const = 0;
    138141
    139 private:
     142  private:
    140143    void updateMask();
    141     void draw( QPainter * ) const;
     144    void draw( QPainter* ) const;
    142145
    143 private:
     146  private:
    144147    class PrivateData;
    145     PrivateData *d_data;
     148    PrivateData* m_data;
    146149};
    147150
Note: See TracChangeset for help on using the changeset viewer.