#include <QMyListBox.h>
Signals | |
| void | sigReturnPressed (int) |
Public Member Functions | |
| QMyListBox (QWidget *parent=0, const char *name=0, WFlags f=0) | |
| void | enableEditMode (bool fOnOff=true) |
Protected Slots | |
| void | sltCatchPressed (QListBoxItem *pqItem) |
| void | sltEditItem (QListBoxItem *pqItem) |
| void | sltChangeItem () |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *pqEvent) |
Private Attributes | |
| bool | m_firstMousePress |
| bool | m_fEditable |
| QListBoxItem * | m_pqItem |
| QLineEdit * | m_pqEditField |
| int | m_nItemIndex |
| QMyListBox::QMyListBox | ( | QWidget * | parent = 0, |
|
| const char * | name = 0, |
|||
| WFlags | f = 0 | |||
| ) |
| void QMyListBox::enableEditMode | ( | bool | fOnOff = true |
) |
Makes the items editable if 'fOnOff' is true.
| void QMyListBox::resizeEvent | ( | QResizeEvent * | pqEvent | ) | [protected] |
Reimplementation of inherited method for internal things.
| void QMyListBox::sigReturnPressed | ( | int | ) | [signal] |
This signal is return when you press the return or enter key after editing.
| void QMyListBox::sltCatchPressed | ( | QListBoxItem * | pqItem | ) | [protected, slot] |
This slot manages the mouse clicks on the passed item 'pqItem'.
| void QMyListBox::sltChangeItem | ( | ) | [protected, slot] |
This slot changes the last edited item.
| void QMyListBox::sltEditItem | ( | QListBoxItem * | pqItem | ) | [protected, slot] |
This slot pops up an edit field over the passed item 'pqItem'.
bool QMyListBox::m_fEditable [private] |
bool QMyListBox::m_firstMousePress [private] |
int QMyListBox::m_nItemIndex [private] |
QLineEdit* QMyListBox::m_pqEditField [private] |
QListBoxItem* QMyListBox::m_pqItem [private] |
1.4.7