KChart

KTextDocument.h
1/*
2 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3 *
4 * This file is part of the KD Chart library.
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KTEXTDOCUMENT_H
10#define KTEXTDOCUMENT_H
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the KD Chart API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
23#include <QTextDocument>
24#include <QSize>
25
26/**
27 * KTextDocument is an internally used enhanced QTextDocument
28 * \internal
29 */
31{
33
34public:
35 explicit KTextDocument( QObject* parent = nullptr );
36 explicit KTextDocument( const QString& text, QObject* parent = nullptr );
37 ~KTextDocument() override;
38
39 QSize sizeHint();
40 QSize minimumSizeHint();
41
42private:
43 QSize sizeForWidth( int width );
44
45private:
46 bool mHintValid;
47 QSize mSizeHint;
48 QSize mMinimumSizeHint;
49};
50
51
52#endif /* KTEXTDOCUMENT_H */
53
KTextDocument is an internally used enhanced QTextDocument.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 7 2024 11:55:05 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.