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

#include <KDChartLayoutItems.h>

Inheritance diagram for KDChart::TextBubbleLayoutItem:
KDChart::AbstractLayoutItem

Public Member Functions

 TextBubbleLayoutItem ()
 
 TextBubbleLayoutItem (const QString &text, const TextAttributes &attributes, const QObject *autoReferenceArea, KDChartEnums::MeasureOrientation autoReferenceOrientation, Qt::Alignment alignment={})
 
 ~TextBubbleLayoutItem () override
 
const QObject * autoReferenceArea () const
 
Qt::Orientations expandingDirections () const override
 
QRect geometry () const override
 
bool isEmpty () const override
 
QSize maximumSize () const override
 
QSize minimumSize () const override
 
void paint (QPainter *painter) override
 
void setAutoReferenceArea (const QObject *area)
 
void setGeometry (const QRect &r) override
 
void setText (const QString &text)
 
void setTextAttributes (const TextAttributes &a)
 
QSize sizeHint () const override
 
QString text () const
 
TextAttributes textAttributes () const
 
- 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
 

Protected Member Functions

int borderWidth () const
 

Additional Inherited Members

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

Detailed Description

Definition at line 160 of file KDChartLayoutItems.h.

Constructor & Destructor Documentation

◆ TextBubbleLayoutItem() [1/2]

KDChart::TextBubbleLayoutItem::TextBubbleLayoutItem ( )

Definition at line 90 of file KDChartLayoutItems.cpp.

◆ TextBubbleLayoutItem() [2/2]

KDChart::TextBubbleLayoutItem::TextBubbleLayoutItem ( const QString &  text,
const TextAttributes attributes,
const QObject *  autoReferenceArea,
KDChartEnums::MeasureOrientation  autoReferenceOrientation,
Qt::Alignment  alignment = {} 
)

Definition at line 80 of file KDChartLayoutItems.cpp.

◆ ~TextBubbleLayoutItem()

KDChart::TextBubbleLayoutItem::~TextBubbleLayoutItem ( )
override

Definition at line 96 of file KDChartLayoutItems.cpp.

Member Function Documentation

◆ autoReferenceArea()

const QObject * KDChart::TextBubbleLayoutItem::autoReferenceArea ( ) const

Definition at line 106 of file KDChartLayoutItems.cpp.

◆ borderWidth()

int KDChart::TextBubbleLayoutItem::borderWidth ( ) const
protected

Definition at line 183 of file KDChartLayoutItems.cpp.

◆ expandingDirections()

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

pure virtual in QLayoutItem

Definition at line 136 of file KDChartLayoutItems.cpp.

◆ geometry()

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

pure virtual in QLayoutItem

Definition at line 165 of file KDChartLayoutItems.cpp.

◆ isEmpty()

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

pure virtual in QLayoutItem

Definition at line 131 of file KDChartLayoutItems.cpp.

◆ maximumSize()

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

pure virtual in QLayoutItem

Definition at line 141 of file KDChartLayoutItems.cpp.

◆ minimumSize()

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

pure virtual in QLayoutItem

Definition at line 147 of file KDChartLayoutItems.cpp.

◆ paint()

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

Implements KDChart::AbstractLayoutItem.

Definition at line 171 of file KDChartLayoutItems.cpp.

◆ setAutoReferenceArea()

void KDChart::TextBubbleLayoutItem::setAutoReferenceArea ( const QObject *  area)

Definition at line 101 of file KDChartLayoutItems.cpp.

◆ setGeometry()

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

pure virtual in QLayoutItem

Definition at line 159 of file KDChartLayoutItems.cpp.

◆ setText()

void KDChart::TextBubbleLayoutItem::setText ( const QString &  text)

Definition at line 111 of file KDChartLayoutItems.cpp.

◆ setTextAttributes()

void KDChart::TextBubbleLayoutItem::setTextAttributes ( const TextAttributes a)

Definition at line 121 of file KDChartLayoutItems.cpp.

◆ sizeHint()

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

pure virtual in QLayoutItem

Definition at line 153 of file KDChartLayoutItems.cpp.

◆ text()

QString KDChart::TextBubbleLayoutItem::text ( ) const

Definition at line 116 of file KDChartLayoutItems.cpp.

◆ textAttributes()

KDChart::TextAttributes KDChart::TextBubbleLayoutItem::textAttributes ( ) const

Definition at line 126 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