logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtAbstractLegend - Abstract base class for legend widgets.

Author

       Generated automatically by Doxygen for Qwt User's Guide from the source code.

Version 6.1.4                                    Wed Jan 2 2019                             QwtAbstractLegend(3)

Constructor & Destructor Documentation

QwtAbstractLegend::QwtAbstractLegend(QWidget*parent=NULL)[explicit]
       Constructor

       Parameters:parent Parent widget

Detailed Description

       Abstract base class for legend widgets.

       Legends, that need to be under control of the QwtPlot layout system need to be derived from
       QwtAbstractLegend.

       Note:
           Other type of legends can be implemented by connecting to the QwtPlot::legendDataChanged() signal.
           But as these legends are unknown to the plot layout system the layout code ( on screen and for
           QwtPlotRenderer ) need to be organized in application code.

       Seealso:QwtLegend

Member Function Documentation

virtualboolQwtAbstractLegend::isEmpty()const[purevirtual]Returns:
           True, when no plot item is inserted

       Implemented in QwtLegend.

   virtualvoidQwtAbstractLegend::renderLegend(QPainter*painter,constQRectF&rect,boolfillBackground)const[purevirtual]
       Render the legend into a given rectangle.

       Parameters:painter Painter
           rect Bounding rectangle
           fillBackground When true, fill rect with the widget background

       Seealso:renderLegend() is used by QwtPlotRenderer

       Implemented in QwtLegend.

   intQwtAbstractLegend::scrollExtent(Qt::Orientationorientation)const[virtual]
       Return the extent, that is needed for elements to scroll the legend ( usually scrollbars ),

       Parameters:orientation Orientation

       Returns:
           Extent of the corresponding scroll element

       Reimplemented in QwtLegend.

   virtualvoidQwtAbstractLegend::updateLegend(constQVariant&itemInfo,constQList<QwtLegendData>&data)[purevirtual],[slot]
       Update the entries for a plot item.

       Parameters:itemInfo Info about an item
           data List of legend entry attributes for the item

Name

       QwtAbstractLegend - Abstract base class for legend widgets.

Synopsis

       #include <qwt_abstract_legend.h>

       Inherits QFrame.

       Inherited by QwtLegend.

   PublicSlots
       virtual void updateLegend (const QVariant &itemInfo, const QList< QwtLegendData > &data)=0
           Update the entries for a plot item.

   PublicMemberFunctionsQwtAbstractLegend (QWidget *parent=NULL)
       virtual ~QwtAbstractLegend ()
           Destructor.
       virtual void renderLegend (QPainter *painter, const QRectF &rect, bool fillBackground) const =0
       virtual bool isEmpty () const =0
       virtual int scrollExtent (Qt::Orientation) const

See Also