QguLineEdit Class Reference

This is the QguLineEdit class. More...

#include <qslot.h>

List of all members.

Public Slots

void paste ()
 Method that pastes the content of the clipboard into the current line edit object and validates it.

Signals

void hadDropEvent ()
 signal emitted drop received
void getFocus ()

Public Member Functions

 QguLineEdit (QWidget *parent, const char *name)
 QguLineEdit constructor.
 ~QguLineEdit ()
void setActive (bool)

Public Attributes

QguWLinputWLinput
bool active

Protected Member Functions

virtual void dropEvent (QDropEvent *e)
 This event handler is called when the drag is dropped on this widget. It has been re-implemented from QWidget.
virtual void focusInEvent (QFocusEvent *)

Protected Attributes

QColor activeColor
QColor inactiveColor
QColor activeText
QColor inactiveText


Detailed Description

This is the QguLineEdit class.

This class specialises the QLineEdit widget itself inside QguWLinput to allow us to overload drop and paste

A line edit allows the user to enter and edit a single line of plain text with a useful collection of editing functions, including undo and redo, cut and paste, and drag and drop

It inherits QLineEdit which is a built-in QT3 class

Remarks:
{ This class includes Q_OBJECT which is a QT3 macro that is used in all sub-classes of QObject in order to benefit from the QT's Meta object system which are signals and slots mechanisms for inter-object communication, runtime type information and the dynamic property system }

Constructor & Destructor Documentation

QguLineEdit::QguLineEdit ( QWidget *  parent,
const char *  name 
)

QguLineEdit constructor.

Parameters:
parent of type QWidget*
name of type const char*
Exceptions:
None 
Returns:
None

QguLineEdit::~QguLineEdit (  ) 


Member Function Documentation

void QguLineEdit::dropEvent ( QDropEvent *  e  )  [protected, virtual]

This event handler is called when the drag is dropped on this widget. It has been re-implemented from QWidget.

Sets and validates dropped text

Parameters:
e of type QDropEvent *
Exceptions:
None 
Returns:
None

void QguLineEdit::focusInEvent ( QFocusEvent *  e  )  [protected, virtual]

void QguLineEdit::getFocus (  )  [signal]

void QguLineEdit::hadDropEvent (  )  [signal]

signal emitted drop received

Parameters:
None 
Exceptions:
None 
Returns:
None

void QguLineEdit::paste (  )  [slot]

Method that pastes the content of the clipboard into the current line edit object and validates it.

Parameters:
None 
Exceptions:
None 
Returns:
None

void QguLineEdit::setActive ( bool  active  ) 


Member Data Documentation

QColor QguLineEdit::activeColor [protected]

QColor QguLineEdit::activeText [protected]

QColor QguLineEdit::inactiveColor [protected]

QColor QguLineEdit::inactiveText [protected]


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

Generated on Fri Jan 8 12:51:29 2010 for QSAS by  doxygen 1.5.7