File indexing completed on 2024-12-01 03:47:54

0001 /*
0002     SPDX-FileCopyrightText: 2003 Russell Steffen <rsteffen@bayarea.net>
0003     SPDX-FileCopyrightText: 2003 Stephan Zehetner <s.zehetner@nevox.org>
0004     SPDX-FileCopyrightText: 2006 Dmitry Suzdalev <dimsuz@gmail.com>
0005     SPDX-FileCopyrightText: 2006 Inge Wallin <inge@lysator.liu.se>
0006     SPDX-FileCopyrightText: 2006 Pierre Ducroquet <pinaraf@gmail.com>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #ifndef KONQUEST_MAPVIEW_H
0012 #define KONQUEST_MAPVIEW_H
0013 
0014 #include <QGraphicsView>
0015 
0016 class MapScene;
0017 
0018 class MapView : public QGraphicsView
0019 {
0020 public:
0021     explicit MapView( MapScene* scene, QWidget *parent = nullptr );
0022     
0023 private:
0024     void resizeEvent( QResizeEvent* ) override;
0025     QSize sizeHint() const override;
0026 
0027     MapScene* m_scene;
0028 };
0029 
0030 #endif // KONQUEST_MAPVIEW_H