A subclass of QLineEdit with enhancements. More...
Public Member Functions | |
QtlLineEdit (QWidget *parent=0) | |
Constructor. More... | |
QtlLineEdit (const QString &contents, QWidget *parent=0) | |
Constructor. More... | |
void | setText (const QString &s) |
Set the line edit's text. More... | |
Protected Member Functions | |
virtual void | dragEnterEvent (QDragEnterEvent *event) Q_DECL_OVERRIDE |
Invoked when a drag operation enters the widget. More... | |
virtual void | dropEvent (QDropEvent *event) Q_DECL_OVERRIDE |
Invoked when a drop operation is performed. More... | |
A subclass of QLineEdit with enhancements.
Accept objects containing URL's (file names from Explorer for instance) to be dropped.
|
explicit |
Constructor.
[in] | parent | Optional parent widget. |
|
explicit |
Constructor.
[in] | contents | Initial text content. |
[in] | parent | Optional parent widget. |
void QtlLineEdit::setText | ( | const QString & | s | ) |
Set the line edit's text.
Override superclass. Maintain the cursor position when possible.
[in] | s | Text to set. |
|
protectedvirtual |
Invoked when a drag operation enters the widget.
[in,out] | event | The notified event. |
|
protectedvirtual |
Invoked when a drop operation is performed.
[in,out] | event | The notified event. |