File indexing completed on 2024-12-15 04:02:43

0001 /*
0002  * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
0003  *
0004  * This file is part of the KD Chart library.
0005  *
0006  * SPDX-License-Identifier: GPL-2.0-or-later
0007  */
0008 
0009 #ifndef KCHART_TEXT_AREA_P_H
0010 #define KCHART_TEXT_AREA_P_H
0011 
0012 //
0013 //  W A R N I N G
0014 //  -------------
0015 //
0016 // This file is not part of the KD Chart API.  It exists purely as an
0017 // implementation detail.  This header file may change from version to
0018 // version without notice, or even be removed.
0019 //
0020 // We mean it.
0021 //
0022 
0023 /** \file KChartTextArea_p.h
0024  *  \internal
0025  */
0026 
0027 #include "KChartTextArea.h"
0028 #include "KChartAbstractAreaBase_p.h"
0029 #include "KChartMath_p.h"
0030 
0031 
0032 namespace KChart {
0033 
0034 /**
0035  * \internal
0036  */
0037     class Q_DECL_HIDDEN TextArea::Private : public AbstractAreaBase::Private
0038     {
0039         friend class TextArea;
0040     public:
0041         explicit Private();
0042         ~Private() override;
0043 
0044         Private( const Private& rhs ) :
0045             AbstractAreaBase::Private( rhs )
0046             {
0047                 // Just for consistency
0048             }
0049     };
0050 
0051 
0052     inline TextArea::TextArea( Private * p )
0053         :  QObject(), AbstractAreaBase( p ), TextLayoutItem()
0054     {
0055         init();
0056     }
0057     inline TextArea::Private * TextArea::d_func()
0058     {
0059         return static_cast<Private*>( AbstractAreaBase::d_func() );
0060     }
0061     inline const TextArea::Private * TextArea::d_func() const
0062     {
0063         return static_cast<const Private*>( AbstractAreaBase::d_func() );
0064     }
0065 
0066 }
0067 
0068 #endif /* KCHART_TEXT_AREA_P_H */
0069