QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
layout
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
6
email : nyall.dawson@gmail.com
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
22
#include "qgis_gui.h"
23
#include "
qgslayout.h
"
24
#include "
qgslayoutview.h
"
25
26
#include <QGraphicsRectItem>
27
28
#define SIP_NO_FILE
29
31
39
class
GUI_EXPORT QgsLayoutReportSectionLabel :
public
QGraphicsRectItem
40
{
41
public
:
45
QgsLayoutReportSectionLabel(
QgsLayout
*layout,
QgsLayoutView
*view );
46
47
void
paint( QPainter *painter,
const
QStyleOptionGraphicsItem *option, QWidget *widget =
nullptr
)
override
;
48
50
void
setLabel(
const
QString &label );
51
52
private
:
53
QPointer<QgsLayout> mLayout;
54
QPointer<QgsLayoutView> mView;
55
QString mLabel;
56
};
57
59
60
#endif
// QGSLAYOUTREPORTSECTIONLABEL_H
QgsLayoutView
A graphical widget to display and interact with QgsLayouts.
Definition
qgslayoutview.h:52
QgsLayout
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition
qgslayout.h:51
qgslayout.h
qgslayoutview.h
Generated on
for QGIS API Documentation by
1.17.0