1
/****************************************************************************
2
** Copyright (C) 2007 Klarälvdalens Datakonsult AB. All rights reserved.
4
** This file is part of the KD Chart library.
6
** This file may be used under the terms of the GNU General Public
7
** License versions 2.0 or 3.0 as published by the Free Software
8
** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
9
** included in the packaging of this file. Alternatively you may (at
10
** your option) use any later version of the GNU General Public
11
** License if such license has been publicly approved by
12
** Klarälvdalens Datakonsult AB (or its successors, if any).
14
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
15
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
16
** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
17
** not expressly granted herein.
19
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22
**********************************************************************/
24
#include "KDChartFrameAttributes.h"
26
#include <KDABLibFakes>
30
using namespace KDChart;
32
class FrameAttributes::Private
34
friend class FrameAttributes;
43
FrameAttributes::Private::Private() :
50
FrameAttributes::FrameAttributes()
55
FrameAttributes::FrameAttributes( const FrameAttributes& r )
56
: _d( new Private( *r.d ) )
60
FrameAttributes & FrameAttributes::operator=( const FrameAttributes& r )
70
FrameAttributes::~FrameAttributes()
76
bool FrameAttributes::operator==( const FrameAttributes& r ) const
79
qDebug() << "FrameAttributes:" << (isVisible() == r.isVisible())
81
<< (padding() == r.padding()) << "\n";
83
return ( isVisible() == r.isVisible() &&
85
padding() == r.padding() );
91
void FrameAttributes::setVisible( bool visible )
96
bool FrameAttributes::isVisible() const
101
void FrameAttributes::setPen( const QPen & pen )
106
QPen FrameAttributes::pen() const
111
void FrameAttributes::setPadding( int padding )
113
d->padding = padding;
116
int FrameAttributes::padding() const
121
#if !defined(QT_NO_DEBUG_STREAM)
122
QDebug operator<<(QDebug dbg, const KDChart::FrameAttributes& fa)
124
dbg << "KDChart::FrameAttributes("
125
<< "visible="<<fa.isVisible()
127
<< "padding="<<fa.padding()
131
#endif /* QT_NO_DEBUG_STREAM */