KD Reports
1.8
src
KDReports
KDReportsElement.h
1
/****************************************************************************
2
** Copyright (C) 2007-2020 Klaralvdalens Datakonsult AB. All rights reserved.
3
**
4
** This file is part of the KD Reports library.
5
**
6
** Licensees holding valid commercial KD Reports licenses may use this file in
7
** accordance with the KD Reports Commercial License Agreement provided with
8
** the Software.
9
**
10
**
11
** This file may be distributed and/or modified under the terms of the
12
** GNU Lesser General Public License version 2.1 and version 3 as published by the
13
** Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
14
**
15
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17
**
18
** Contact info@kdab.com if any conditions of this licensing are not
19
** clear to you.
20
**
21
**********************************************************************/
22
23
#ifndef KDREPORTSELEMENT_H
24
#define KDREPORTSELEMENT_H
25
26
#include "KDReportsGlobal.h"
27
28
QT_BEGIN_NAMESPACE
29
class
QBrush;
30
QT_END_NAMESPACE
31
32
namespace
KDReports
{
33
class
ReportBuilder;
34
class
ElementPrivate;
35
45
class
KDREPORTS_EXPORT
Element
46
{
47
public
:
51
virtual
~Element
();
52
56
void
setBackground
(
const
QBrush& brush );
60
QBrush
background
()
const
;
61
65
virtual
void
build( ReportBuilder& )
const
= 0;
66
70
virtual
Element
* clone()
const
= 0;
71
72
protected
:
76
Element
();
80
Element
(
const
Element
&other);
84
Element
&
operator=
(
const
Element
&other);
85
86
private
:
87
ElementPrivate*
const
d;
88
};
89
90
}
91
92
#endif
/* KDREPORTSELEMENT_H */
93
KDReports::Element::~Element
virtual ~Element()
KDReports::Element
Definition:
KDReportsElement.h:46
KDReports::Element::background
QBrush background() const
KDReports::Element::Element
Element()
KDReports::Element::Element
Element(const Element &other)
KDReports::Element::setBackground
void setBackground(const QBrush &brush)
KDReports::Element::operator=
Element & operator=(const Element &other)
KDReports
Definition:
KDReportsAbstractTableElement.h:36
Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-reports/