Public Slots | Signals | Public Member Functions | Properties | List of all members
pqSignalAdaptorComboBox Class Reference

signal adaptor to allow getting/setting/observing of a pseudo 'currentText' property of a combo box the QComboBox currentIndexChanged signal is forwarded to this currentTextChanged signal More...

#include <pqSignalAdaptors.h>

Inheritance diagram for pqSignalAdaptorComboBox:
Inheritance graph
[legend]

Public Slots

void setCurrentText (const QString &)
 set the current text of a combo box (actually sets the index for the text) More...
 
void setCurrentIndex (int index)
 set the current index of a combox box. More...
 
void setCurrentData (const QVariant &data)
 set the current index to the index with user data as the argument. More...
 

Signals

void currentTextChanged (const QString &)
 signal text changed in a combo box More...
 
void currentIndexChanged (int)
 

Public Member Functions

 pqSignalAdaptorComboBox (QComboBox *p)
 constructor requires a QComboBox More...
 
QString currentText () const
 get the current text of a combo box More...
 
int currentIndex () const
 get the current index of a combo box. More...
 
QVariant currentData () const
 get the user data associated with the current index. More...
 

Properties

QString currentText
 
int currentIndex
 
QVariant currentData
 

Detailed Description

signal adaptor to allow getting/setting/observing of a pseudo 'currentText' property of a combo box the QComboBox currentIndexChanged signal is forwarded to this currentTextChanged signal

Definition at line 23 of file pqSignalAdaptors.h.

Constructor & Destructor Documentation

◆ pqSignalAdaptorComboBox()

pqSignalAdaptorComboBox::pqSignalAdaptorComboBox ( QComboBox *  p)

constructor requires a QComboBox

Member Function Documentation

◆ currentText()

QString pqSignalAdaptorComboBox::currentText ( ) const

get the current text of a combo box

◆ currentIndex()

int pqSignalAdaptorComboBox::currentIndex ( ) const

get the current index of a combo box.

◆ currentData()

QVariant pqSignalAdaptorComboBox::currentData ( ) const

get the user data associated with the current index.

◆ currentTextChanged

void pqSignalAdaptorComboBox::currentTextChanged ( const QString &  )
signal

signal text changed in a combo box

◆ currentIndexChanged

void pqSignalAdaptorComboBox::currentIndexChanged ( int  )
signal

◆ setCurrentText

void pqSignalAdaptorComboBox::setCurrentText ( const QString &  )
slot

set the current text of a combo box (actually sets the index for the text)

◆ setCurrentIndex

void pqSignalAdaptorComboBox::setCurrentIndex ( int  index)
slot

set the current index of a combox box.

◆ setCurrentData

void pqSignalAdaptorComboBox::setCurrentData ( const QVariant &  data)
slot

set the current index to the index with user data as the argument.

Property Documentation

◆ currentText

QString pqSignalAdaptorComboBox::currentText
readwrite

Definition at line 26 of file pqSignalAdaptors.h.

◆ currentIndex

int pqSignalAdaptorComboBox::currentIndex
readwrite

Definition at line 27 of file pqSignalAdaptors.h.

◆ currentData

QVariant pqSignalAdaptorComboBox::currentData
readwrite

Definition at line 28 of file pqSignalAdaptors.h.


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