QGIS API Documentation 3.41.0-Master (57ec4277f5e)
Loading...
Searching...
No Matches
qgslayoutreportsectionlabel.h
Go to the documentation of this file.
1/***************************************************************************
2 qgslayoutreportsectionlabel.h
3 -----------------------
4 begin : January 2018
5 copyright : (C) 2018 by Nyall Dawson
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17#ifndef QGSLAYOUTREPORTSECTIONLABEL_H
18#define QGSLAYOUTREPORTSECTIONLABEL_H
19
20// We don't want to expose this in the public API
21#define SIP_NO_FILE
22
23#include <QGraphicsRectItem>
24#include "qgis_gui.h"
25#include "qgslayoutview.h"
26#include "qgslayout.h"
27
29
37class GUI_EXPORT QgsLayoutReportSectionLabel : public QGraphicsRectItem
38{
39 public:
43 QgsLayoutReportSectionLabel( QgsLayout *layout, QgsLayoutView *view );
44
45 void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr ) override;
46
48 void setLabel( const QString &label );
49
50 private:
51 QPointer<QgsLayout> mLayout;
52 QPointer<QgsLayoutView> mView;
53 QString mLabel;
54};
55
57
58#endif // QGSLAYOUTREPORTSECTIONLABEL_H
A graphical widget to display and interact with QgsLayouts.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition qgslayout.h:49