KVIrc 5.2.6
Developer APIs
KviTalVBox Class Reference

Toolkit Abstraction Layer: vbox class. More...

#include <KviTalVBox.h>

+ Inheritance diagram for KviTalVBox:

Public Member Functions

void addStretch (int iStretch)
 Adds the stretch factor.
 
 KviTalVBox (QWidget *pParent, char *pcName=nullptr)
 Constructs a vertical box object.
 
void setAlignment (Qt::Alignment alignment)
 Sets the alignment of the box.
 
void setAlignment (QWidget *pChild, Qt::Alignment alignment)
 Sets the alignment of the box for a child object.
 
void setMargin (int iMargin)
 Sets the margin of the box.
 
void setSpacing (int iSpacing)
 Sets the spacing of the box.
 
void setStretchFactor (QWidget *pChild, int iStretch)
 Sets the stretch factor for an object.
 
 ~KviTalVBox ()
 Destroys a vertical box object.
 

Protected Member Functions

void childEvent (QChildEvent *e) override
 

Private Attributes

QVBoxLayout * m_pLayout
 

Detailed Description

Toolkit Abstraction Layer: vbox class.

Constructor & Destructor Documentation

◆ KviTalVBox()

KviTalVBox::KviTalVBox ( QWidget * pParent,
char * pcName = nullptr )

Constructs a vertical box object.

Parameters
pParentThe parent object
pcNameThe name of the box
Returns
KviTalVBox

References m_pLayout.

Referenced by KviChannelListSelector::KviChannelListSelector(), and KviStringListSelector::KviStringListSelector().

◆ ~KviTalVBox()

KviTalVBox::~KviTalVBox ( )
default

Destroys a vertical box object.

Member Function Documentation

◆ addStretch()

void KviTalVBox::addStretch ( int iStretch)

Adds the stretch factor.

Parameters
iStretchThe stretch factor
Returns
void

References m_pLayout.

◆ childEvent()

void KviTalVBox::childEvent ( QChildEvent * e)
overrideprotected

References e, and m_pLayout.

◆ setAlignment() [1/2]

void KviTalVBox::setAlignment ( Qt::Alignment alignment)

Sets the alignment of the box.

Parameters
alignmentThe alignment
Returns
void

References m_pLayout.

◆ setAlignment() [2/2]

void KviTalVBox::setAlignment ( QWidget * pChild,
Qt::Alignment alignment )

Sets the alignment of the box for a child object.

Parameters
pChildThe object to align
alignmentThe alignment
Returns
void

References m_pLayout.

◆ setMargin()

void KviTalVBox::setMargin ( int iMargin)

Sets the margin of the box.

Parameters
iMarginThe margin in pixels
Returns
void

References m_pLayout.

◆ setSpacing()

◆ setStretchFactor()

void KviTalVBox::setStretchFactor ( QWidget * pChild,
int iStretch )

Member Data Documentation

◆ m_pLayout

QVBoxLayout* KviTalVBox::m_pLayout
private

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