File indexing completed on 2022-10-04 14:27:23

0001 /*
0002     SPDX-FileCopyrightText: 2008-2010 Stefan Majewsky <majewsky@gmx.net>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDIAMOND_VIEW_H
0008 #define KDIAMOND_VIEW_H
0009 
0010 #include <QGraphicsView>
0011 
0012 namespace KDiamond
0013 {
0014 
0015 class View : public QGraphicsView
0016 {
0017 public:
0018     explicit View(QWidget *parent = nullptr);
0019 
0020     void setScene(QGraphicsScene *scene);
0021 protected:
0022     void resizeEvent(QResizeEvent *event) override;
0023     void wheelEvent(QWheelEvent *event) override;
0024 };
0025 
0026 }
0027 
0028 #endif // KDIAMOND_VIEW_H