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

QMyListBox Class Reference

#include <QMyListBox.h>

Inheritance diagram for QMyListBox::

QListBox QScrollView QFrame QWidget QObject QPaintDevice Qt List of all members.

Signals

void sigReturnPressed (int)

Public Methods

 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 Methods

void resizeEvent (QResizeEvent *pqEvent)

Private Attributes

bool m_firstMousePress
bool m_fEditable
QListBoxItemm_pqItem
QLineEditm_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 at Thu Oct 4 17:17:32 2001 for QGLViewer by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001