KD Reports  1.9
KDReportsHLineElement.h
1 /****************************************************************************
2 **
3 ** This file is part of the KD Reports library.
4 **
5 ** SPDX-FileCopyrightText: 2007-2020 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 #ifndef KDREPORTSHLINEELEMENT_H
18 #define KDREPORTSHLINEELEMENT_H
19 
20 #include "KDReportsElement.h"
21 #include <QtCore/QString>
22 
23 QT_BEGIN_NAMESPACE
24 class QColor;
25 class QFont;
26 class QTextDocument;
27 QT_END_NAMESPACE
28 
29 namespace KDReports {
30 class HLineElementPrivate;
31 
36 class KDREPORTS_EXPORT HLineElement : public Element
37 {
38 public:
42  HLineElement();
46  ~HLineElement() override;
47 
52  HLineElement(const HLineElement &other);
56  HLineElement &operator=(const HLineElement &other);
57 
61  void setColor( const QColor& color );
62 
66  QColor color() const;
67 
71  void setThickness(int w);
72 
76  int thickness() const;
77 
81  void setMargin(int m);
82 
86  int margin() const;
87 
88  void build( ReportBuilder& builder ) const override;
93  Element* clone() const override;
94 
95 private:
96 
97  HLineElementPrivate* const d;
98 };
99 
100 }
101 
102 #endif /* KDREPORTSHLINELEMENT_H */
103 
Definition: KDReportsAbstractTableElement.h:30
Definition: KDReportsHLineElement.h:36
Definition: KDReportsElement.h:39

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/