Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

QMyListBox Class Reference

#include <QMyListBox.h>

List of all members.

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


Detailed Description

This class expands the original QListBox class with the possibility the change the strings in the list box by double clicking on the items.

Author:
Markus Janich


Constructor & Destructor Documentation

QMyListBox::QMyListBox QWidget *    parent = 0,
const char *    name = 0,
WFlags    f = 0
 


Member Function Documentation

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'.


Member Data Documentation

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]
 


The documentation for this class was generated from the following files:
Generated on Wed Mar 5 18:23:26 2003 for QGLViewer by doxygen1.3-rc3