KVIrc 5.2.6
Developer APIs
KviTalHBox Class Reference

Toolkit Abstraction Layer: hbox class. More...

#include <KviTalHBox.h>

+ Inheritance diagram for KviTalHBox:

Public Member Functions

void addSpacing (int iSpace)
 Adds a non-stretchable spacing item.
 
void addStretch (int iStretch)
 Adds the stretch factor.
 
 KviTalHBox (QWidget *pParent, char *pcName=nullptr)
 Constructs an horizontal 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.
 
void setMargin (int iMargin)
 Sets the margin of the box.
 
void setSpacing (int iSpace)
 Sets the spacing of the box.
 
void setStretchFactor (QWidget *pChild, int iStretch)
 Sets the stretch factor for an object.
 
 ~KviTalHBox ()
 Destroys an horizontal box object.
 

Protected Member Functions

void childEvent (QChildEvent *e) override
 

Private Attributes

QHBoxLayout * m_pLayout
 

Detailed Description

Toolkit Abstraction Layer: hbox class.

Constructor & Destructor Documentation

◆ KviTalHBox()

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

Constructs an horizontal box object.

Parameters
pParentThe parent object
pcNameThe name of the box
Returns
KviTalHBox

References m_pLayout.

◆ ~KviTalHBox()

KviTalHBox::~KviTalHBox ( )
default

Destroys an horizontal box object.

Member Function Documentation

◆ addSpacing()

void KviTalHBox::addSpacing ( int iSpace)

Adds a non-stretchable spacing item.

Parameters
iSpacethe width of the item
Returns
void

References m_pLayout.

Referenced by KviPasswordLineEdit::KviPasswordLineEdit(), and KviPasswordSelector::KviPasswordSelector().

◆ addStretch()

void KviTalHBox::addStretch ( int iStretch)

Adds the stretch factor.

Parameters
iStretchThe stretch factor
Returns
void

References m_pLayout.

◆ childEvent()

void KviTalHBox::childEvent ( QChildEvent * e)
overrideprotected

References e, and m_pLayout.

◆ setAlignment() [1/2]

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

Sets the alignment of the box.

Parameters
alignmentThe alignment
Returns
void

References m_pLayout.

Referenced by IdentityProfileEditor::IdentityProfileEditor(), and KviClassEditorFunctionDialog::KviClassEditorFunctionDialog().

◆ setAlignment() [2/2]

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

Sets the alignment of the box.

Parameters
pChildThe child object to align
alignmentThe alignment
Returns
void

References m_pLayout.

◆ setMargin()

◆ setSpacing()

void KviTalHBox::setSpacing ( int iSpace)

Sets the spacing of the box.

Parameters
iSpaceThe space in pixels
Returns
void

References m_pLayout.

Referenced by AddonManagementDialog::AddonManagementDialog(), AliasEditorWidget::AliasEditorWidget(), ChannelsJoinDialog::ChannelsJoinDialog(), ClassEditorWidget::ClassEditorWidget(), OptionsWidget_textIcons::currentItemChanged(), DccVoiceWindow::DccVoiceWindow(), OptionsWidget_textIcons::iconSelected(), KviChannelWindow::KviChannelWindow(), KviClassEditorDialog::KviClassEditorDialog(), KviClassEditorFunctionDialog::KviClassEditorFunctionDialog(), KviColorSelector::KviColorSelector(), KviConsoleWindow::KviConsoleWindow(), KviFontSelector::KviFontSelector(), KviInput::KviInput(), KviMircTextColorSelector::KviMircTextColorSelector(), KviPasswordLineEdit::KviPasswordLineEdit(), KviPasswordSelector::KviPasswordSelector(), KviQueryWindow::KviQueryWindow(), KviStringSelector::KviStringSelector(), KviTalWizard::KviTalWizard(), KviWebPackageManagementDialog::KviWebPackageManagementDialog(), ListWindow::ListWindow(), OptionsDialog::OptionsDialog(), OptionsWidget_dccAdvanced::OptionsWidget_dccAdvanced(), OptionsWidget_identityAvatar::OptionsWidget_identityAvatar(), OptionsWidget_privmsg::OptionsWidget_privmsg(), OptionsWidget_userListForeground::OptionsWidget_userListForeground(), OptionsWidget_userListGrid::OptionsWidget_userListGrid(), RegisteredUserEntryDialog::RegisteredUserEntryDialog(), RegisteredUserMaskDialog::RegisteredUserMaskDialog(), RegisteredUserPropertiesDialog::RegisteredUserPropertiesDialog(), RegisteredUsersDialog::RegisteredUsersDialog(), SetupWizard::SetupWizard(), and ThemeManagementDialog::ThemeManagementDialog().

◆ setStretchFactor()

Member Data Documentation

◆ m_pLayout

QHBoxLayout* KviTalHBox::m_pLayout
private

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