KReport

KReportDesignerSectionView.h
1 /* This file is part of the KDE project
2  * Copyright (C) 2001-2007 by OpenMFG, LLC ([email protected])
3  * Copyright (C) 2007-2008 by Adam Pigg ([email protected])
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef KREPORTDESIGNERSECTIONVIEW_H
20 #define KREPORTDESIGNERSECTIONVIEW_H
21 
22 #include <QGraphicsView>
23 
24 class KReportDesigner;
25 
26 class KReportDesignerSectionView : public QGraphicsView
27 {
28  Q_OBJECT
29 public:
30  KReportDesignerSectionView(KReportDesigner *designer, QGraphicsScene *scene,
31  QWidget *parent = nullptr);
32  ~KReportDesignerSectionView() override;
33 
34  KReportDesigner * designer() const;
35  QSize sizeHint() const override;
36 public Q_SLOTS:
37  void resizeContents(const QSize&);
38 
39 protected:
40  void mousePressEvent(QMouseEvent * e) override;
41  void mouseReleaseEvent(QMouseEvent * e) override;
42 
43 private:
44  KReportDesigner* m_reportDesigner;
45 };
46 
47 #endif
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
virtual void mouseReleaseEvent(QMouseEvent *event) override
virtual QSize sizeHint() const const override
The ReportDesigner is the main widget for designing a report.
virtual void mousePressEvent(QMouseEvent *event) override
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:17:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.