Public Slots | Signals | Public Member Functions | Protected Attributes
QMultiComboBox Class Reference

#include <QMultiComboBox.h>

List of all members.

Public Slots

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

Signals

void itemChanged ()
 item changed

Public Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 22 of file QMultiComboBox.h.


Constructor & Destructor Documentation

QMultiComboBox::QMultiComboBox ( QWidget *  widget = 0)

Constructor.

Definition at line 18 of file QMultiComboBox.cpp.

Definition at line 40 of file QMultiComboBox.cpp.


Member Function Documentation

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

add a item to the list

Definition at line 144 of file QMultiComboBox.cpp.

void QMultiComboBox::clear ( ) [slot]

Definition at line 227 of file QMultiComboBox.cpp.

replace neccessary data access

Definition at line 157 of file QMultiComboBox.cpp.

Definition at line 169 of file QMultiComboBox.cpp.

QString QMultiComboBox::GetDisplayText ( ) const

get the main display text

Definition at line 56 of file QMultiComboBox.cpp.

Definition at line 138 of file QMultiComboBox.cpp.

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

the init style

Definition at line 219 of file QMultiComboBox.cpp.

void QMultiComboBox::itemChanged ( ) [signal]

item changed

QVariant QMultiComboBox::itemData ( int  row)

Definition at line 181 of file QMultiComboBox.cpp.

QString QMultiComboBox::itemText ( int  row)

Definition at line 175 of file QMultiComboBox.cpp.

void QMultiComboBox::paintEvent ( QPaintEvent *  e) [virtual]

custom paint

Definition at line 68 of file QMultiComboBox.cpp.

void QMultiComboBox::scanItemSelect ( QListWidgetItem *  item) [slot]

react on changes of the item checkbox

Definition at line 200 of file QMultiComboBox.cpp.

void QMultiComboBox::setCurrentIndex ( int  index)

Definition at line 163 of file QMultiComboBox.cpp.

void QMultiComboBox::SetDisplayText ( QString  text)

the main display text

Definition at line 46 of file QMultiComboBox.cpp.

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

Definition at line 188 of file QMultiComboBox.cpp.

set the height of the popup

Definition at line 62 of file QMultiComboBox.cpp.

replace standard QComboBox Popup

Definition at line 83 of file QMultiComboBox.cpp.


Member Data Documentation

QString QMultiComboBox::m_DisplayText_ [protected]

hold the main display text

Definition at line 82 of file QMultiComboBox.h.

QFrame QMultiComboBox::popframe_ [protected]

popup frame

Definition at line 85 of file QMultiComboBox.h.

int QMultiComboBox::popheight_ [protected]

the height of the popup

Definition at line 76 of file QMultiComboBox.h.

lower/upper screen bound

Definition at line 79 of file QMultiComboBox.h.

QListWidget QMultiComboBox::vlist_ [protected]

multi selection list in the popup frame

Definition at line 88 of file QMultiComboBox.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:39