File indexing completed on 2024-06-23 04:17:58

0001 /**
0002  * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
0003  *
0004  * This file is part of the KD Chart library.
0005  *
0006  * SPDX-License-Identifier: GPL-2.0-or-later
0007  */
0008 
0009 #ifndef ZOOMWIDGET_H
0010 #define ZOOMWIDGET_H
0011 
0012 #include <KChartWidget>
0013 
0014 class ZoomWidget : public KChart::Widget
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     explicit ZoomWidget( QWidget* parent );
0020 
0021 protected:
0022     QPointF findNewZoomCenter( const QPoint & pos );
0023     void mousePressEvent( QMouseEvent * e ) override;
0024     void wheelEvent( QWheelEvent* e ) override;
0025     void keyPressEvent( QKeyEvent* e ) override;
0026 };
0027 
0028 
0029 #endif /* ZOOMWIDGET_H */
0030