KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
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
33{
35
36public:
37 explicit KDTextDocument(QObject *parent = nullptr);
38 explicit KDTextDocument(const QString &text, QObject *parent = nullptr);
39 ~KDTextDocument() override;
40
43
44private:
45 QSize sizeForWidth(int width);
46
47private:
48 bool mHintValid = false;
49 QSize mSizeHint;
50 QSize mMinimumSizeHint;
51};
52
53#endif /* KDTEXTDOCUMENT_H */
~KDTextDocument() override
Q_OBJECTQ_OBJECT
QObject * parent() const const

© 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