17 #include <KDABLibFakes>
23 class LeveyJenningsGridAttributes::Private
36 LeveyJenningsGridAttributes::Private::Private()
38 pens[Calculated].setCapStyle(Qt::FlatCap);
39 pens[Calculated].setColor(Qt::blue);
40 pens[Expected].setCapStyle(Qt::FlatCap);
41 pens[Expected].setColor(Qt::black);
43 visible[Calculated] =
true;
44 visible[Expected] =
true;
57 : _d(new Private(*r.
d))
84 d->rangeBrushes[range] = brush;
89 return d->rangeBrushes[range];
94 d->visible[type] = visible;
99 return d->visible[type];
105 d->pens[type].setCapStyle(Qt::FlatCap);
110 return d->pens[type];
A set of attributes controlling the appearance of grids.
void setGridPen(GridType type, const QPen &pen)
LeveyJenningsGridAttributes & operator=(const LeveyJenningsGridAttributes &)
void setGridVisible(GridType type, bool visible)
bool isGridVisible(GridType type) const
QPen gridPen(GridType type) const
LeveyJenningsGridAttributes()
bool operator==(const LeveyJenningsGridAttributes &) const
QBrush rangeBrush(Range range) const
~LeveyJenningsGridAttributes()
void setRangeBrush(Range range, const QBrush &brush)