File indexing completed on 2024-12-15 04:02:31
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 KCHARTLEVEYJENNINGSAXIS_P_H 0010 #define KCHARTLEVEYJENNINGSAXIS_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 #include "KChartLeveyJenningsAxis.h" 0024 #include "KChartLeveyJenningsDiagram.h" 0025 #include "KChartCartesianAxis_p.h" 0026 #include "KChartMath_p.h" 0027 0028 0029 namespace KChart { 0030 0031 /** 0032 * \internal 0033 */ 0034 class Q_DECL_HIDDEN LeveyJenningsAxis::Private : public CartesianAxis::Private 0035 { 0036 friend class LeveyJenningsAxis; 0037 0038 public: 0039 Private( LeveyJenningsDiagram* diagram, LeveyJenningsAxis* axis ) 0040 : CartesianAxis::Private( diagram, axis ) 0041 , type( LeveyJenningsGridAttributes::Expected ) 0042 , format( Qt::ISODate ) 0043 {} 0044 ~Private() override {} 0045 0046 private: 0047 LeveyJenningsGridAttributes::GridType type; 0048 Qt::DateFormat format; 0049 }; 0050 0051 inline LeveyJenningsAxis::LeveyJenningsAxis( Private * p, AbstractDiagram* diagram ) 0052 : CartesianAxis( p, diagram ) 0053 { 0054 init(); 0055 } 0056 inline LeveyJenningsAxis::Private * LeveyJenningsAxis::d_func() 0057 { return static_cast<Private*>( CartesianAxis::d_func() ); } 0058 inline const LeveyJenningsAxis::Private * LeveyJenningsAxis::d_func() const 0059 { return static_cast<const Private*>( CartesianAxis::d_func() ); } 0060 0061 } 0062 0063 #endif