22 QColor c( Qt::darkGray );
85 setPen( QPen( color, width, style ) );
222 const QRectF &canvasRect )
const 228 pen.setCapStyle( Qt::FlatCap );
243 QRectF r( canvasRect.left(), y1, canvasRect.width(), y2 - y1 );
246 if ( (
d_data->
brush.style() != Qt::NoBrush ) && ( y1 != y2 ) )
270 QRectF r( x1, canvasRect.top(), x2 - x1, canvasRect.height() );
273 if ( (
d_data->
brush.style() != Qt::NoBrush ) && ( x1 != x2 ) )
virtual void draw(QPainter *, const QwtScaleMap &, const QwtScaleMap &, const QRectF &) const
static void drawLine(QPainter *, double x1, double y1, double x2, double y2)
Wrapper for QPainter::drawLine()
static void fillRect(QPainter *, const QRectF &, const QBrush &)
Wrapper for QPainter::fillRect()
A class representing an interval.
Qt::Orientation orientation() const
QwtPlotZoneItem()
Constructor.
The item is represented on the legend.
virtual QRectF boundingRect() const
void setBrush(const QBrush &)
Assign a brush.
void setPen(const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine)
void setOrientation(Qt::Orientation)
Set the orientation of the zone.
A class representing a text.
void setZ(double z)
Set the z value.
virtual ~QwtPlotZoneItem()
Destructor.
virtual void itemChanged()
const QBrush & brush() const
void setInterval(double min, double max)
QwtInterval interval() const
Base class for items on the plot canvas.
void setItemAttribute(ItemAttribute, bool on=true)
double transform(double s) const
Qt::Orientation orientation
static bool roundingAlignment()
virtual QRectF boundingRect() const