KD Reports API Documentation  2.2
KDReportsHLineElement.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 KDREPORTSHLINEELEMENT_H
12 #define KDREPORTSHLINEELEMENT_H
13 
14 #include "KDReportsElement.h"
15 #include <QtCore/QString>
16 
17 QT_BEGIN_NAMESPACE
18 class QColor;
19 class QFont;
20 class QTextDocument;
21 QT_END_NAMESPACE
22 
23 namespace KDReports {
24 class HLineElementPrivate;
25 
31 {
32 public:
36  HLineElement();
40  ~HLineElement() override;
41 
46  HLineElement(const HLineElement &other);
50  HLineElement &operator=(const HLineElement &other);
51 
55  void setColor(const QColor &color);
56 
60  QColor color() const;
61 
65  void setThickness(qreal t);
66 
70  qreal thickness() const;
71 
75  void setMargin(int m);
76 
80  int margin() const;
81 
82  void build(ReportBuilder &builder) const override;
87  Element *clone() const override;
88 
89 private:
90  std::unique_ptr<HLineElementPrivate> d;
91 };
92 
93 }
94 
95 #endif /* KDREPORTSHLINELEMENT_H */
#define KDREPORTS_EXPORT

© 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