1 /* 2 * Copyright (C) 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 3 * 4 * This file is part of the KD Chart library. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of 9 * the License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <https://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef KCHARTABSTRACTAREA_P_H 21 #define KCHARTABSTRACTAREA_P_H 22 23 // 24 // W A R N I N G 25 // ------------- 26 // 27 // This file is not part of the KD Chart API. It exists purely as an 28 // implementation detail. This header file may change from version to 29 // version without notice, or even be removed. 30 // 31 // We mean it. 32 // 33 34 /** \file KChartAbstractArea_p.h 35 * \internal 36 */ 37 38 #include "KChartAbstractArea.h" 39 #include "KChartAbstractAreaBase_p.h" 40 41 #include "KChartMath_p.h" 42 43 44 namespace KChart { 45 46 /** 47 * \internal 48 */ 49 class Q_DECL_HIDDEN AbstractArea::Private : public AbstractAreaBase::Private 50 { 51 friend class AbstractArea; 52 public: 53 explicit Private(); 54 virtual ~Private(); 55 }; 56 57 AbstractArea(Private * p)58inline AbstractArea::AbstractArea( Private * p ) 59 : QObject(), AbstractAreaBase( p ), AbstractLayoutItem() 60 { 61 init(); 62 } d_func()63inline AbstractArea::Private * AbstractArea::d_func() 64 { 65 return static_cast<Private*>( AbstractAreaBase::d_func() ); 66 } d_func()67inline const AbstractArea::Private * AbstractArea::d_func() const 68 { 69 return static_cast<const Private*>( AbstractAreaBase::d_func() ); 70 } 71 72 } 73 74 #endif /* KCHARTABSTRACTAREA_P_H */ 75 76