#include <qslot.h>
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 | |
QguWLinput * | WLinput |
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 |
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
QguLineEdit::QguLineEdit | ( | QWidget * | parent, | |
const char * | name | |||
) |
QguLineEdit constructor.
parent | of type QWidget* | |
name | of type const char* |
None |
QguLineEdit::~QguLineEdit | ( | ) |
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
e | of type QDropEvent * |
None |
void QguLineEdit::focusInEvent | ( | QFocusEvent * | e | ) | [protected, virtual] |
void QguLineEdit::getFocus | ( | ) | [signal] |
void QguLineEdit::hadDropEvent | ( | ) | [signal] |
signal emitted drop received
None |
None |
void QguLineEdit::paste | ( | ) | [slot] |
Method that pastes the content of the clipboard into the current line edit object and validates it.
None |
None |
void QguLineEdit::setActive | ( | bool | active | ) |
bool QguLineEdit::active |
QColor QguLineEdit::activeColor [protected] |
QColor QguLineEdit::activeText [protected] |
QColor QguLineEdit::inactiveColor [protected] |
QColor QguLineEdit::inactiveText [protected] |