File indexing completed on 2024-05-12 04:20:28
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 KCHARTABSTRACTAREAWIDGET_P_H 0010 #define KCHARTABSTRACTAREAWIDGET_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 KChartAbstractAreaWidget_p.h 0024 * \internal 0025 */ 0026 0027 #include "KChartAbstractAreaWidget.h" 0028 #include "KChartAbstractAreaBase_p.h" 0029 0030 #include "KChartMath_p.h" 0031 0032 0033 namespace KChart { 0034 0035 /** 0036 * \internal 0037 */ 0038 class Q_DECL_HIDDEN AbstractAreaWidget::Private : public AbstractAreaBase::Private 0039 { 0040 friend class AbstractAreaWidget; 0041 public: 0042 explicit Private(); 0043 ~Private() override; 0044 0045 Private( const Private& rhs ) : 0046 AbstractAreaBase::Private( rhs ), 0047 currentLayoutSize() 0048 { 0049 // Just for consistency 0050 } 0051 0052 QSize currentLayoutSize; 0053 0054 // non-virtual method, calling widget->resizeLayout( size ) 0055 void resizeLayout( AbstractAreaWidget* widget, const QSize& sz ); 0056 }; 0057 0058 0059 inline AbstractAreaWidget::AbstractAreaWidget( AbstractAreaWidget::Private * p, QWidget* parent ) 0060 : QWidget( parent ), AbstractAreaBase( p ) 0061 { 0062 init(); 0063 } 0064 inline AbstractAreaWidget::Private * AbstractAreaWidget::d_func() 0065 { 0066 return static_cast<Private*>( AbstractAreaBase::d_func() ); 0067 } 0068 inline const AbstractAreaWidget::Private * AbstractAreaWidget::d_func() const 0069 { 0070 return static_cast<const Private*>( AbstractAreaBase::d_func() ); 0071 } 0072 0073 0074 } 0075 0076 #endif /* KCHARTABSTRACTAREAWIDGET_P_H */