Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_arrow_button.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_arrow_button.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_arrow_button.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 15 15 16 16 /*! 17 \brief Arrow Button 17 \brief Arrow Button 18 18 19 A push button with one or more filled triangles on its front. 20 An Arrow button can have 1 to 3 arrows in a row, pointing 21 up, down, left or right. 22 */ 19 A push button with one or more filled triangles on its front. 20 An Arrow button can have 1 to 3 arrows in a row, pointing 21 up, down, left or right. 22 */ 23 23 class QWT_EXPORT QwtArrowButton : public QPushButton 24 24 { 25 public: 26 explicit QwtArrowButton ( int num, Qt::ArrowType, QWidget *parent = NULL );25 public: 26 explicit QwtArrowButton ( int num, Qt::ArrowType, QWidget* parent = NULL ); 27 27 virtual ~QwtArrowButton(); 28 28 … … 30 30 int num() const; 31 31 32 virtual QSize sizeHint() const; 33 virtual QSize minimumSizeHint() const; 32 virtual QSize sizeHint() const QWT_OVERRIDE; 33 virtual QSize minimumSizeHint() const QWT_OVERRIDE; 34 34 35 protected: 36 virtual void paintEvent( QPaintEvent *event ); 35 protected: 36 virtual void paintEvent( QPaintEvent*) QWT_OVERRIDE; 37 virtual void keyPressEvent( QKeyEvent* ) QWT_OVERRIDE; 37 38 38 virtual void drawButtonLabel( QPainter * );39 virtual void drawArrow( QPainter *,40 const QRect &, Qt::ArrowType ) const;39 virtual void drawButtonLabel( QPainter* ); 40 virtual void drawArrow( QPainter*, 41 const QRect&, Qt::ArrowType ) const; 41 42 virtual QRect labelRect() const; 42 43 virtual QSize arrowSize( Qt::ArrowType, 43 const QSize &boundingSize ) const;44 const QSize& boundingSize ) const; 44 45 45 virtual void keyPressEvent( QKeyEvent * ); 46 47 private: 46 private: 48 47 class PrivateData; 49 PrivateData *d_data;48 PrivateData* m_data; 50 49 }; 51 50
Note:
See TracChangeset
for help on using the changeset viewer.
