Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_widget_overlay.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_widget_overlay.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_widget_overlay.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 13 13 #include "qwt_global.h" 14 14 #include <qwidget.h> 15 #include <qregion.h>16 15 17 16 class QPainter; 17 class QRegion; 18 18 19 19 /*! … … 38 38 \sa QwtPlotCanvas::BackingStore 39 39 */ 40 class QWT_EXPORT QwtWidgetOverlay: public QWidget 40 class QWT_EXPORT QwtWidgetOverlay : public QWidget 41 41 { 42 public: 42 Q_OBJECT 43 44 public: 43 45 /*! 44 46 \brief Mask mode … … 112 114 }; 113 115 114 QwtWidgetOverlay( QWidget* ); 116 explicit QwtWidgetOverlay( QWidget* ); 115 117 virtual ~QwtWidgetOverlay(); 116 118 … … 121 123 RenderMode renderMode() const; 122 124 125 virtual bool eventFilter( QObject*, QEvent*) QWT_OVERRIDE; 126 127 public Q_SLOTS: 123 128 void updateOverlay(); 124 129 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; 130 133 131 134 virtual QRegion maskHint() const; … … 135 138 \param painter Painter 136 139 */ 137 virtual void drawOverlay( QPainter *painter ) const = 0;140 virtual void drawOverlay( QPainter* painter ) const = 0; 138 141 139 private: 142 private: 140 143 void updateMask(); 141 void draw( QPainter * ) const;144 void draw( QPainter* ) const; 142 145 143 private: 146 private: 144 147 class PrivateData; 145 PrivateData *d_data;148 PrivateData* m_data; 146 149 }; 147 150
Note:
See TracChangeset
for help on using the changeset viewer.
