KD Reports API Documentation 2.2
Loading...
Searching...
No Matches
KDReportsElement.h
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#ifndef KDREPORTSELEMENT_H
12#define KDREPORTSELEMENT_H
13
14#include "KDReportsGlobal.h"
15#include <memory>
16
17QT_BEGIN_NAMESPACE
18class QBrush;
19QT_END_NAMESPACE
20
21namespace KDReports {
22class ReportBuilder;
23class ElementPrivate;
24
35{
36public:
40 virtual ~Element();
41
45 void setBackground(const QBrush &brush);
49 QBrush background() const;
50
54 virtual void build(ReportBuilder &) const = 0;
55
59 virtual Element *clone() const = 0;
60
61protected:
65 Element();
69 Element(const Element &other);
73 Element &operator=(const Element &other);
74
75private:
76 std::unique_ptr<ElementPrivate> d;
77};
78
79}
80
81#endif /* KDREPORTSELEMENT_H */
#define KDREPORTS_EXPORT
virtual void build(ReportBuilder &) const =0
virtual Element * clone() const =0

© 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 Sun Apr 28 2024 00:03:08 for KD Reports API Documentation by doxygen 1.9.8