File: view.h

package info (click to toggle)
killbots 4%3A25.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,012 kB
  • sloc: cpp: 2,731; xml: 163; makefile: 8; sh: 2
file content (33 lines) | stat: -rw-r--r-- 576 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
    This file is part of Killbots.

    SPDX-FileCopyrightText: 2007-2009 Parker Coates <coates@kde.org>

    SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef KILLBOTS_VIEW_H
#define KILLBOTS_VIEW_H

#include <QGraphicsView>
class QResizeEvent;

namespace Killbots
{
class View : public QGraphicsView
{
    Q_OBJECT

public: // functions
    explicit View(QGraphicsScene *scene, QWidget *parent = nullptr);
    ~View() override;

Q_SIGNALS:
    void sizeChanged(QSize newSize);

protected: // functions
    void resizeEvent(QResizeEvent *event) override;
};
}

#endif