Public Slots | Signals | Public Member Functions | Protected Attributes | List of all members
QMultiComboBox Class Reference

#include <QMultiComboBox.h>

Inheritance diagram for QMultiComboBox:
Inheritance graph
[legend]

Public Slots

void clear ()
 
void initStyleOption (QStyleOptionComboBox *option) const
 the init style More...
 
void scanItemSelect (QListWidgetItem *item)
 react on changes of the item checkbox More...
 

Signals

void itemChanged ()
 item changed More...
 

Public Member Functions

void addItem (const QString &text, const QVariant &userData=QVariant())
 add a item to the list More...
 
int count ()
 replace neccessary data access More...
 
QString currentText ()
 
QString GetDisplayText () const
 get the main display text More...
 
void hidePopup ()
 
QVariant itemData (int row)
 
QString itemText (int row)
 
virtual void paintEvent (QPaintEvent *e)
 custom paint More...
 
 QMultiComboBox (QWidget *widget=0)
 Constructor. More...
 
void setCurrentIndex (int index)
 
void SetDisplayText (QString text)
 the main display text More...
 
void setItemChecked (int row, bool checked)
 
void setPopupHeight (int h)
 set the height of the popup More...
 
void showPopup ()
 replace standard QComboBox Popup More...
 
virtual ~QMultiComboBox ()
 

Protected Attributes

QString m_DisplayText_
 hold the main display text More...
 
QFrame popframe_
 popup frame More...
 
int popheight_
 the height of the popup More...
 
int screenbound_
 lower/upper screen bound More...
 
QListWidget vlist_
 multi selection list in the popup frame More...
 

Detailed Description

Definition at line 21 of file QMultiComboBox.h.

Constructor & Destructor Documentation

◆ QMultiComboBox()

QMultiComboBox::QMultiComboBox ( QWidget *  widget = 0)

Constructor.

Definition at line 19 of file QMultiComboBox.cpp.

◆ ~QMultiComboBox()

QMultiComboBox::~QMultiComboBox ( )
virtual

Definition at line 41 of file QMultiComboBox.cpp.

Member Function Documentation

◆ addItem()

void QMultiComboBox::addItem ( const QString &  text,
const QVariant &  userData = QVariant() 
)

add a item to the list

Definition at line 149 of file QMultiComboBox.cpp.

◆ clear

void QMultiComboBox::clear ( )
slot

Definition at line 232 of file QMultiComboBox.cpp.

◆ count()

int QMultiComboBox::count ( )

replace neccessary data access

Definition at line 162 of file QMultiComboBox.cpp.

◆ currentText()

QString QMultiComboBox::currentText ( )

Definition at line 174 of file QMultiComboBox.cpp.

◆ GetDisplayText()

QString QMultiComboBox::GetDisplayText ( ) const

get the main display text

Definition at line 61 of file QMultiComboBox.cpp.

◆ hidePopup()

void QMultiComboBox::hidePopup ( )

Definition at line 143 of file QMultiComboBox.cpp.

◆ initStyleOption

void QMultiComboBox::initStyleOption ( QStyleOptionComboBox *  option) const
slot

the init style

Definition at line 224 of file QMultiComboBox.cpp.

◆ itemChanged

void QMultiComboBox::itemChanged ( )
signal

item changed

◆ itemData()

QVariant QMultiComboBox::itemData ( int  row)

Definition at line 186 of file QMultiComboBox.cpp.

◆ itemText()

QString QMultiComboBox::itemText ( int  row)

Definition at line 180 of file QMultiComboBox.cpp.

◆ paintEvent()

void QMultiComboBox::paintEvent ( QPaintEvent *  e)
virtual

custom paint

Definition at line 73 of file QMultiComboBox.cpp.

◆ scanItemSelect

void QMultiComboBox::scanItemSelect ( QListWidgetItem *  item)
slot

react on changes of the item checkbox

Definition at line 205 of file QMultiComboBox.cpp.

◆ setCurrentIndex()

void QMultiComboBox::setCurrentIndex ( int  index)

Definition at line 168 of file QMultiComboBox.cpp.

◆ SetDisplayText()

void QMultiComboBox::SetDisplayText ( QString  text)

the main display text

Definition at line 47 of file QMultiComboBox.cpp.

◆ setItemChecked()

void QMultiComboBox::setItemChecked ( int  row,
bool  checked 
)

Definition at line 193 of file QMultiComboBox.cpp.

◆ setPopupHeight()

void QMultiComboBox::setPopupHeight ( int  h)

set the height of the popup

Definition at line 67 of file QMultiComboBox.cpp.

◆ showPopup()

void QMultiComboBox::showPopup ( )

replace standard QComboBox Popup

Definition at line 88 of file QMultiComboBox.cpp.

Member Data Documentation

◆ m_DisplayText_

QString QMultiComboBox::m_DisplayText_
protected

hold the main display text

Definition at line 89 of file QMultiComboBox.h.

◆ popframe_

QFrame QMultiComboBox::popframe_
protected

popup frame

Definition at line 92 of file QMultiComboBox.h.

◆ popheight_

int QMultiComboBox::popheight_
protected

the height of the popup

Definition at line 83 of file QMultiComboBox.h.

◆ screenbound_

int QMultiComboBox::screenbound_
protected

lower/upper screen bound

Definition at line 86 of file QMultiComboBox.h.

◆ vlist_

QListWidget QMultiComboBox::vlist_
protected

multi selection list in the popup frame

Definition at line 95 of file QMultiComboBox.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:26