#include <KDChartFrameAttributes.h>
Definition at line 43 of file KDChartFrameAttributes.h.
Public Member Functions | |
FrameAttributes (const FrameAttributes &) | |
FrameAttributes () | |
bool | isVisible () const |
bool | operator!= (const FrameAttributes &other) const |
FrameAttributes & | operator= (const FrameAttributes &) |
bool | operator== (const FrameAttributes &) const |
int | padding () const |
QPen | pen () const |
void | setPadding (int padding) |
void | setPen (const QPen &pen) |
void | setVisible (bool visible) |
~FrameAttributes () |
FrameAttributes::FrameAttributes | ( | ) |
Definition at line 52 of file KDChartFrameAttributes.cpp.
00053 : _d( new Private() ) 00054 { 00055 }
FrameAttributes::FrameAttributes | ( | const FrameAttributes & | r | ) |
Definition at line 57 of file KDChartFrameAttributes.cpp.
00058 : _d( new Private( *r.d ) ) 00059 { 00060 }
FrameAttributes::~FrameAttributes | ( | ) |
bool FrameAttributes::isVisible | ( | ) | const |
Definition at line 98 of file KDChartFrameAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::AbstractAreaBase::paintFrameAttributes().
00099 { 00100 return d->visible; 00101 }
bool KDChart::FrameAttributes::operator!= | ( | const FrameAttributes & | other | ) | const |
Definition at line 62 of file KDChartFrameAttributes.h.
References KDGantt::operator==().
00062 { return !operator==(other); }
FrameAttributes & FrameAttributes::operator= | ( | const FrameAttributes & | r | ) |
Definition at line 62 of file KDChartFrameAttributes.cpp.
References d.
00063 { 00064 if( this == &r ) 00065 return *this; 00066 00067 *d = *r.d; 00068 00069 return *this; 00070 }
bool FrameAttributes::operator== | ( | const FrameAttributes & | r | ) | const |
Definition at line 78 of file KDChartFrameAttributes.cpp.
References isVisible(), padding(), and pen().
00079 { 00080 /* 00081 qDebug() << "FrameAttributes:" << (isVisible() == r.isVisible()) 00082 << (pen() == r.pen()) 00083 << (padding() == r.padding()) << "\n"; 00084 */ 00085 return ( isVisible() == r.isVisible() && 00086 pen() == r.pen() && 00087 padding() == r.padding() ); 00088 }
int FrameAttributes::padding | ( | ) | const |
Definition at line 118 of file KDChartFrameAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().
00119 { 00120 return d->padding; 00121 }
QPen FrameAttributes::pen | ( | ) | const |
Definition at line 108 of file KDChartFrameAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::AbstractAreaBase::paintFrameAttributes().
00109 { 00110 return d->pen; 00111 }
void FrameAttributes::setPadding | ( | int | padding | ) |
Definition at line 113 of file KDChartFrameAttributes.cpp.
References d.
Referenced by KDChart::Chart::Chart().
void FrameAttributes::setPen | ( | const QPen & | pen | ) |
Definition at line 103 of file KDChartFrameAttributes.cpp.
References d.
Referenced by KDChart::Chart::Chart().
void FrameAttributes::setVisible | ( | bool | visible | ) |
Definition at line 93 of file KDChartFrameAttributes.cpp.
References d.
00094 { 00095 d->visible = visible; 00096 }