KD Reports API Documentation
2.2
src
KDReports
KDReportsElement.cpp
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** This file is part of the KD Reports library.
4
**
5
** SPDX-FileCopyrightText: 2007 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6
**
7
** SPDX-License-Identifier: MIT
8
**
9
****************************************************************************/
10
11
#include "
KDReportsElement.h
"
12
#include <QBrush>
13
14
class
KDReports::ElementPrivate
15
{
16
public
:
17
QBrush m_background;
18
};
19
20
KDReports::Element::Element
()
21
: d(new ElementPrivate)
22
{
23
}
24
25
KDReports::Element::Element
(
const
Element
&other)
26
: d(new ElementPrivate(*other.d))
27
{
28
}
29
30
KDReports::Element
&
KDReports::Element::operator=
(
const
Element
&other)
31
{
32
if
(&other ==
this
)
33
return
*
this
;
34
*d = *other.d;
35
return
*
this
;
36
}
37
38
KDReports::Element::~Element
()
39
{
40
}
41
42
void
KDReports::Element::setBackground
(
const
QBrush &brush)
43
{
44
d->m_background = brush;
45
}
46
47
QBrush
KDReports::Element::background
()
const
48
{
49
return
d->m_background;
50
}
KDReportsElement.h
KDReports::Element
Definition:
KDReportsElement.h:35
KDReports::Element::setBackground
void setBackground(const QBrush &brush)
Definition:
KDReportsElement.cpp:42
KDReports::Element::operator=
Element & operator=(const Element &other)
Definition:
KDReportsElement.cpp:30
KDReports::Element::~Element
virtual ~Element()
Definition:
KDReportsElement.cpp:38
KDReports::Element::background
QBrush background() const
Definition:
KDReportsElement.cpp:47
KDReports::Element::Element
Element()
Definition:
KDReportsElement.cpp:20
© 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/
Generated by doxygen 1.9.1