KD Reports API Documentation  2.0
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-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDAB-KDReports OR LicenseRef-KDAB-KDReports-US
8 **
9 ** Licensees holding valid commercial KD Reports licenses may use this file in
10 ** accordance with the KD Reports Commercial License Agreement provided with
11 ** the Software.
12 **
13 ** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14 **
15 ****************************************************************************/
16 
17 #include "KDReportsElement.h"
18 #include <QBrush>
19 
20 class KDReports::ElementPrivate
21 {
22 public:
23  QBrush m_background;
24 };
25 
27  : d(new ElementPrivate)
28 {
29 }
30 
32  : d(new ElementPrivate(*other.d))
33 {
34 }
35 
37 {
38  if (&other == this)
39  return *this;
40  *d = *other.d;
41  return *this;
42 }
43 
45 {
46  delete d;
47 }
48 
49 void KDReports::Element::setBackground(const QBrush &brush)
50 {
51  d->m_background = brush;
52 }
53 
55 {
56  return d->m_background;
57 }
KDReports::Element
Definition: KDReportsElement.h:39
KDReports::Element::background
QBrush background() const
Definition: KDReportsElement.cpp:54
KDReports::Element::Element
Element()
Definition: KDReportsElement.cpp:26
KDReportsElement.h
KDReports::Element::operator=
Element & operator=(const Element &other)
Definition: KDReportsElement.cpp:36
KDReports::Element::setBackground
void setBackground(const QBrush &brush)
Definition: KDReportsElement.cpp:49
KDReports::Element::~Element
virtual ~Element()
Definition: KDReportsElement.cpp:44

© 2007-2021 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 on Sat Jan 8 2022 02:38:32 for KD Reports API Documentation by doxygen 1.8.17