KD Chart API Documentation
3.1
Loading...
Searching...
No Matches
source
src
KDChart
KDTextDocument.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** This file is part of the KD Chart library.
4
**
5
** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6
**
7
** SPDX-License-Identifier: MIT
8
**
9
****************************************************************************/
10
11
#ifndef KDTEXTDOCUMENT_H
12
#define KDTEXTDOCUMENT_H
13
14
//
15
// W A R N I N G
16
// -------------
17
//
18
// This file is not part of the KD Chart API. It exists purely as an
19
// implementation detail. This header file may change from version to
20
// version without notice, or even be removed.
21
//
22
// We mean it.
23
//
24
25
#include <QSize>
26
#include <QTextDocument>
27
32
class
KDTextDocument
:
public
QTextDocument
33
{
34
Q_OBJECT
35
36
public
:
37
explicit
KDTextDocument
(
QObject
*
parent
=
nullptr
);
38
explicit
KDTextDocument
(
const
QString
&text,
QObject
*
parent
=
nullptr
);
39
~KDTextDocument
()
override
;
40
41
QSize
sizeHint
();
42
QSize
minimumSizeHint
();
43
44
private
:
45
QSize
sizeForWidth(
int
width);
46
47
private
:
48
bool
mHintValid =
false
;
49
QSize
mSizeHint;
50
QSize
mMinimumSizeHint;
51
};
52
53
#endif
/* KDTEXTDOCUMENT_H */
KDTextDocument
Definition
KDTextDocument.h:33
KDTextDocument::sizeHint
QSize sizeHint()
Definition
KDTextDocument.cpp:42
KDTextDocument::~KDTextDocument
~KDTextDocument() override
Definition
KDTextDocument.cpp:38
KDTextDocument::minimumSizeHint
QSize minimumSizeHint()
Definition
KDTextDocument.cpp:49
QObject
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QSize
QString
QTextDocument
© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Wed May 1 2024 00:01:10 for KD Chart API Documentation by doxygen 1.9.8