MyLineEdit

A modified QLineEdit. More...

Publicly inherits QLineEdit.

Public Methods

MyLineEdit( QWidget* parent=???, const char* name=??? );

Protected Methods

virtual voidkeyPressEvent( QKeyEvent* e );

Signals

voiddownPressed( );
voidupPressed( );

Detailed Documentation

A modified QLineEdit.

This variant of a QLineEdit emits two unique signals when the up and down arrow keys are pressed.

Public Methods Documentation

MyLineEdit ( QWidget* parent=???, const char* name=??? );

Create a MyLineEdit.

Protected Methods Documentation

virtual void keyPressEvent ( QKeyEvent* e );

Process a key press.

This implementation emits an upPressed() signal when the Up Arrow key is pressed, and a downPressed() signal when the Down Arrow key is pressed. All other key press events are passed to the normal QLineEdit key press event handler.

Signals Documentation

void downPressed ( );

Emitted when the Down Arrow key is pressed.

void upPressed ( );

Emitted when the Up Arrow key is pressed.


Return to Index.
Automatically generated on Dec 29 18:17