KVIrc 5.2.6
Developer APIs
KviStringListSelector Class Reference

#include <KviSelectors.h>

+ Inheritance diagram for KviStringListSelector:

Public Slots

virtual void setEnabled (bool bEnabled)
 

Public Member Functions

virtual void commit ()
 
 KviStringListSelector (QWidget *par, const QString &txt, QStringList *pOption, bool bEnabled)
 
QString textForSearch ()
 
QWidget * widgetToHighlight ()
 
 ~KviStringListSelector ()
 
- Public Member Functions inherited from KviTalVBox
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.
 
- Public Member Functions inherited from KviSelectorInterface
 KviSelectorInterface ()
 
virtual ~KviSelectorInterface ()
 

Private Slots

void addClicked ()
 
void itemSelectionChanged ()
 
void removeClicked ()
 
void textChanged (const QString &str)
 

Private Attributes

QPushButton * m_pAddButton
 
QLabel * m_pLabel
 
QLineEdit * m_pLineEdit
 
KviTalListWidgetm_pListWidget
 
QStringList * m_pOption
 
QPushButton * m_pRemoveButton
 

Additional Inherited Members

- Protected Member Functions inherited from KviTalVBox
void childEvent (QChildEvent *e) override
 

Constructor & Destructor Documentation

◆ KviStringListSelector()

KviStringListSelector::KviStringListSelector ( QWidget * par,
const QString & txt,
QStringList * pOption,
bool bEnabled )

◆ ~KviStringListSelector()

KviStringListSelector::~KviStringListSelector ( )
default

Member Function Documentation

◆ addClicked

void KviStringListSelector::addClicked ( )
privateslot

References m_pLineEdit, and m_pListWidget.

Referenced by KviStringListSelector().

◆ commit()

void KviStringListSelector::commit ( )
virtual

Reimplemented from KviSelectorInterface.

References m_pListWidget, m_pOption, and u.

◆ itemSelectionChanged

void KviStringListSelector::itemSelectionChanged ( )
privateslot

References m_pListWidget, and m_pRemoveButton.

Referenced by KviStringListSelector().

◆ removeClicked

void KviStringListSelector::removeClicked ( )
privateslot

References m_pListWidget, and u.

Referenced by KviStringListSelector().

◆ setEnabled

void KviStringListSelector::setEnabled ( bool bEnabled)
virtualslot

◆ textChanged

void KviStringListSelector::textChanged ( const QString & str)
privateslot

References m_pAddButton.

Referenced by KviStringListSelector().

◆ textForSearch()

QString KviStringListSelector::textForSearch ( )
inlinevirtual

Reimplemented from KviSelectorInterface.

◆ widgetToHighlight()

QWidget * KviStringListSelector::widgetToHighlight ( )
inlinevirtual

Reimplemented from KviSelectorInterface.

Member Data Documentation

◆ m_pAddButton

QPushButton* KviStringListSelector::m_pAddButton
private

◆ m_pLabel

QLabel* KviStringListSelector::m_pLabel
private

◆ m_pLineEdit

QLineEdit* KviStringListSelector::m_pLineEdit
private

◆ m_pListWidget

KviTalListWidget* KviStringListSelector::m_pListWidget
private

◆ m_pOption

QStringList* KviStringListSelector::m_pOption
private

Referenced by commit(), and KviStringListSelector().

◆ m_pRemoveButton

QPushButton* KviStringListSelector::m_pRemoveButton
private

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