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

    r8127 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    99
    1010#ifndef QWT_MAGNIFIER_H
    11 #define QWT_MAGNIFIER_H 1
     11#define QWT_MAGNIFIER_H
    1212
    1313#include "qwt_global.h"
    … …  
    2020
    2121/*!
    22   \brief QwtMagnifier provides zooming, by magnifying in steps.
     22   \brief QwtMagnifier provides zooming, by magnifying in steps.
    2323
    24   Using QwtMagnifier a plot can be zoomed in/out in steps using
    25   keys, the mouse wheel or moving a mouse button in vertical direction.
    26 */
    27 class QWT_EXPORT QwtMagnifier: public QObject
     24   Using QwtMagnifier a plot can be zoomed in/out in steps using
     25   keys, the mouse wheel or moving a mouse button in vertical direction.
     26 */
     27class QWT_EXPORT QwtMagnifier : public QObject
    2828{
    2929    Q_OBJECT
    3030
    31 public:
    32     explicit QwtMagnifier( QWidget * );
     31  public:
     32    explicit QwtMagnifier( QWidget* );
    3333    virtual ~QwtMagnifier();
    3434
    35     QWidget *parentWidget();
    36     const QWidget *parentWidget() const;
     35    QWidget* parentWidget();
     36    const QWidget* parentWidget() const;
    3737
    3838    void setEnabled( bool );
    … …  
    4444
    4545    void setMouseButton( Qt::MouseButton, Qt::KeyboardModifiers = Qt::NoModifier );
    46     void getMouseButton( Qt::MouseButton &, Qt::KeyboardModifiers & ) const;
     46    void getMouseButton( Qt::MouseButton&, Qt::KeyboardModifiers& ) const;
    4747
    4848    // mouse wheel
    … …  
    5858
    5959    void setZoomInKey( int key, Qt::KeyboardModifiers = Qt::NoModifier );
    60     void getZoomInKey( int &key, Qt::KeyboardModifiers & ) const;
     60    void getZoomInKey( int& key, Qt::KeyboardModifiers& ) const;
    6161
    6262    void setZoomOutKey( int key, Qt::KeyboardModifiers = Qt::NoModifier );
    63     void getZoomOutKey( int &key, Qt::KeyboardModifiers & ) const;
     63    void getZoomOutKey( int& key, Qt::KeyboardModifiers& ) const;
    6464
    65     virtual bool eventFilter( QObject *, QEvent * );
     65    virtual bool eventFilter( QObject*, QEvent* ) QWT_OVERRIDE;
    6666
    67 protected:
     67  protected:
    6868    /*!
    6969       Rescale the parent widget
    … …  
    7272    virtual void rescale( double factor ) = 0;
    7373
    74     virtual void widgetMousePressEvent( QMouseEvent * );
    75     virtual void widgetMouseReleaseEvent( QMouseEvent * );
    76     virtual void widgetMouseMoveEvent( QMouseEvent * );
    77     virtual void widgetWheelEvent( QWheelEvent * );
    78     virtual void widgetKeyPressEvent( QKeyEvent * );
    79     virtual void widgetKeyReleaseEvent( QKeyEvent * );
     74    virtual void widgetMousePressEvent( QMouseEvent* );
     75    virtual void widgetMouseReleaseEvent( QMouseEvent* );
     76    virtual void widgetMouseMoveEvent( QMouseEvent* );
     77    virtual void widgetWheelEvent( QWheelEvent* );
     78    virtual void widgetKeyPressEvent( QKeyEvent* );
     79    virtual void widgetKeyReleaseEvent( QKeyEvent* );
    8080
    81 private:
     81  private:
    8282    class PrivateData;
    83     PrivateData *d_data;
     83    PrivateData* m_data;
    8484};
    8585
Note: See TracChangeset for help on using the changeset viewer.