KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
KDChart::TextBubbleLayoutItem Class Reference

#include <KDChartLayoutItems.h>

Inheritance diagram for KDChart::TextBubbleLayoutItem:
Inheritance graph
[legend]
Collaboration diagram for KDChart::TextBubbleLayoutItem:
Collaboration graph
[legend]

Public Member Functions

 TextBubbleLayoutItem ()
 
 TextBubbleLayoutItem (const QString &text, const TextAttributes &attributes, const QObject *autoReferenceArea, KDChartEnums::MeasureOrientation autoReferenceOrientation, Qt::Alignment alignment={})
 
 ~TextBubbleLayoutItem () override
 
const QObjectautoReferenceArea () 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)
 
QLayoutparentLayout ()
 
void removeFromParentLayout ()
 
void setParentLayout (QLayout *lay)
 
virtual void setParentWidget (QWidget *widget)
 
virtual void sizeHintChanged () const
 
- Public Member Functions inherited from QLayoutItem
 QLayoutItem (Qt::Alignment alignment)
 
virtual ~QLayoutItem ()
 
Qt::Alignment alignment () const const
 
virtual QSizePolicy::ControlTypes controlTypes () const const
 
virtual bool hasHeightForWidth () const const
 
virtual int heightForWidth (int) const const
 
virtual void invalidate ()
 
virtual QLayoutlayout ()
 
virtual int minimumHeightForWidth (int w) const const
 
void setAlignment (Qt::Alignment alignment)
 
virtual QSpacerItemspacerItem ()
 
virtual QWidgetwidget ()
 

Protected Member Functions

int borderWidth () const
 

Additional Inherited Members

- Protected Attributes inherited from KDChart::AbstractLayoutItem
QWidgetmParent = nullptr
 
QLayoutmParentLayout = 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
overridevirtual

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 136 of file KDChartLayoutItems.cpp.

◆ geometry()

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

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 165 of file KDChartLayoutItems.cpp.

◆ isEmpty()

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

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 131 of file KDChartLayoutItems.cpp.

◆ maximumSize()

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

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 141 of file KDChartLayoutItems.cpp.

◆ minimumSize()

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

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 147 of file KDChartLayoutItems.cpp.

◆ paint()

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

◆ setAutoReferenceArea()

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

Definition at line 101 of file KDChartLayoutItems.cpp.

◆ setGeometry()

void KDChart::TextBubbleLayoutItem::setGeometry ( const QRect r)
overridevirtual

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 159 of file KDChartLayoutItems.cpp.

References QRect::adjusted().

◆ 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
overridevirtual

pure virtual in QLayoutItem

Implements 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 on Fri Apr 26 2024 00:04:57 for KD Chart API Documentation by doxygen 1.9.8