File indexing completed on 2024-05-19 04:04:51

0001 /*
0002     This file is part of Killbots.
0003 
0004     SPDX-FileCopyrightText: 2007-2009 Parker Coates <coates@kde.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef KILLBOTS_VIEW_H
0010 #define KILLBOTS_VIEW_H
0011 
0012 #include <QGraphicsView>
0013 class QResizeEvent;
0014 
0015 namespace Killbots
0016 {
0017 class View : public QGraphicsView
0018 {
0019     Q_OBJECT
0020 
0021 public: // functions
0022     explicit View(QGraphicsScene *scene, QWidget *parent = nullptr);
0023     ~View() override;
0024 
0025 Q_SIGNALS:
0026     void sizeChanged(QSize newSize);
0027 
0028 protected: // functions
0029     void resizeEvent(QResizeEvent *event) override;
0030 };
0031 }
0032 
0033 #endif