KD Chart API Documentation  3.1
Public Member Functions | Static Public Member Functions | List of all members
KDChart::LineLayoutItem Class Reference

#include <KDChartLayoutItems.h>

Inheritance diagram for KDChart::LineLayoutItem:
KDChart::AbstractLayoutItem

Public Member Functions

 LineLayoutItem (AbstractDiagram *diagram, int length, const QPen &pen, Qt::Alignment mLegendLineSymbolAlignment, Qt::Alignment alignment={})
 
Qt::Orientations expandingDirections () const override
 
QRect geometry () const override
 
bool isEmpty () const override
 
virtual Qt::Alignment legendLineSymbolAlignment () const
 
QSize maximumSize () const override
 
QSize minimumSize () const override
 
void paint (QPainter *) override
 
void setGeometry (const QRect &r) override
 
void setLegendLineSymbolAlignment (Qt::Alignment legendLineSymbolAlignment)
 
QSize sizeHint () const override
 
- Public Member Functions inherited from KDChart::AbstractLayoutItem
 AbstractLayoutItem (Qt::Alignment itemAlignment={})
 
virtual void paintAll (QPainter &painter)
 
virtual void paintCtx (PaintContext *context)
 
QLayout * parentLayout ()
 
void removeFromParentLayout ()
 
void setParentLayout (QLayout *lay)
 
virtual void setParentWidget (QWidget *widget)
 
virtual void sizeHintChanged () const
 

Static Public Member Functions

static void paintIntoRect (QPainter *painter, const QRect &rect, const QPen &pen, Qt::Alignment lineAlignment)
 

Additional Inherited Members

- Protected Attributes inherited from KDChart::AbstractLayoutItem
QWidget * mParent = nullptr
 
QLayout * mParentLayout = nullptr
 

Detailed Description

Layout item showing a coloured line

Definition at line 248 of file KDChartLayoutItems.h.

Constructor & Destructor Documentation

◆ LineLayoutItem()

KDChart::LineLayoutItem::LineLayoutItem ( KDChart::AbstractDiagram diagram,
int  length,
const QPen &  pen,
Qt::Alignment  mLegendLineSymbolAlignment,
Qt::Alignment  alignment = {} 
)

Definition at line 694 of file KDChartLayoutItems.cpp.

Member Function Documentation

◆ expandingDirections()

Qt::Orientations KDChart::LineLayoutItem::expandingDirections ( ) const
override

Definition at line 710 of file KDChartLayoutItems.cpp.

◆ geometry()

QRect KDChart::LineLayoutItem::geometry ( ) const
override

Definition at line 715 of file KDChartLayoutItems.cpp.

◆ isEmpty()

bool KDChart::LineLayoutItem::isEmpty ( ) const
override

Definition at line 720 of file KDChartLayoutItems.cpp.

◆ legendLineSymbolAlignment()

Qt::Alignment KDChart::LineLayoutItem::legendLineSymbolAlignment ( ) const
virtual

Definition at line 753 of file KDChartLayoutItems.cpp.

◆ maximumSize()

QSize KDChart::LineLayoutItem::maximumSize ( ) const
override

Definition at line 725 of file KDChartLayoutItems.cpp.

◆ minimumSize()

QSize KDChart::LineLayoutItem::minimumSize ( ) const
override

Definition at line 730 of file KDChartLayoutItems.cpp.

◆ paint()

void KDChart::LineLayoutItem::paint ( QPainter *  painter)
overridevirtual

Implements KDChart::AbstractLayoutItem.

Definition at line 758 of file KDChartLayoutItems.cpp.

◆ paintIntoRect()

void KDChart::LineLayoutItem::paintIntoRect ( QPainter *  painter,
const QRect &  rect,
const QPen &  pen,
Qt::Alignment  lineAlignment 
)
static

◆ setGeometry()

void KDChart::LineLayoutItem::setGeometry ( const QRect &  r)
override

Definition at line 735 of file KDChartLayoutItems.cpp.

◆ setLegendLineSymbolAlignment()

void KDChart::LineLayoutItem::setLegendLineSymbolAlignment ( Qt::Alignment  legendLineSymbolAlignment)

Definition at line 745 of file KDChartLayoutItems.cpp.

◆ sizeHint()

QSize KDChart::LineLayoutItem::sizeHint ( ) const
override

Definition at line 740 of file KDChartLayoutItems.cpp.


The documentation for this class was generated from the following files:

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated by doxygen 1.9.1