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 {
32  Q_OBJECT
33 
34 public:
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 
42 private:
43  QSize sizeForWidth( int width );
44 
45 private:
46  bool mHintValid;
47  QSize mSizeHint;
48  QSize mMinimumSizeHint;
49 };
50 
51 
52 #endif /* KTEXTDOCUMENT_H */
53 
Q_OBJECTQ_OBJECT
Class only listed here to document inheritance of some KChart classes.
KTextDocument is an internally used enhanced QTextDocument.
Definition: KTextDocument.h:30
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu May 26 2022 03:51:01 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.