KD Reports API Documentation
2.2
Loading...
Searching...
No Matches
source
src
KDReports
KDReportsTextElement.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 KDREPORTSTEXTELEMENT_H
12
#define KDREPORTSTEXTELEMENT_H
13
14
#include "
KDReportsElement.h
"
15
#include <QTextCharFormat>
16
#include <QtCore/QString>
17
18
QT_BEGIN_NAMESPACE
19
class
QColor
;
20
class
QFont
;
21
QT_END_NAMESPACE
22
23
namespace
KDReports
{
24
class
TextElementPrivate;
25
30
class
KDREPORTS_EXPORT
TextElement
:
public
Element
31
{
32
public
:
36
explicit
TextElement
(
const
QString
&
string
=
QString
());
40
~TextElement
()
override
;
41
46
TextElement
(
const
TextElement
&other);
50
TextElement
&operator=(
const
TextElement
&other);
51
55
void
setText(
const
QString
&text);
56
60
TextElement
&
operator<<
(
const
QString
&);
61
63
void
setFontFamily(
const
QString
&family);
65
void
setBold(
bool
bold);
67
void
setItalic(
bool
italic);
69
void
setUnderline(
bool
underline);
71
void
setStrikeOut(
bool
strikeout);
73
void
setPointSize(qreal size);
74
82
void
setFont(
const
QFont
&);
83
88
QFont
font()
const
;
89
94
void
setTextColor(
const
QColor
&color);
95
100
QColor
textColor()
const
;
101
106
void
setId(
const
QString
&
id
);
107
112
QString
id()
const
;
113
118
QString
text()
const
;
119
124
void
build(
ReportBuilder
&builder)
const override
;
129
Element
*clone()
const override
;
130
131
private
:
132
friend
class
ReportBuilder
;
133
void
setCharFormat(
const
QTextCharFormat
&format);
134
135
std::unique_ptr<TextElementPrivate> d;
136
};
137
138
}
139
140
#endif
/* KDREPORTSTEXTELEMENT_H */
KDReportsElement.h
KDREPORTS_EXPORT
#define KDREPORTS_EXPORT
Definition
KDReportsGlobal.h:23
operator<<
QDebug operator<<(QDebug &dbg, QTextOption::Tab tab)
Definition
KDReportsReportBuilder.cpp:183
KDReports::Element
Definition
KDReportsElement.h:35
KDReports::ReportBuilder
Definition
KDReportsReportBuilder_p.h:36
KDReports::TextElement
Definition
KDReportsTextElement.h:31
KDReports
Definition
KDReportsAbstractReportLayout_p.h:24
QColor
QFont
QString
QTextCharFormat
© 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 Tue Jul 9 2024 00:04:17 for KD Reports API Documentation by doxygen 1.9.8