QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlLineEdit Class Reference

A subclass of QLineEdit with enhancements. More...

Inheritance diagram for QtlLineEdit:

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...
 

Detailed Description

A subclass of QLineEdit with enhancements.

Accept objects containing URL's (file names from Explorer for instance) to be dropped.

Constructor & Destructor Documentation

◆ QtlLineEdit() [1/2]

QtlLineEdit::QtlLineEdit ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
[in]parentOptional parent widget.

◆ QtlLineEdit() [2/2]

QtlLineEdit::QtlLineEdit ( const QString &  contents,
QWidget *  parent = 0 
)
explicit

Constructor.

Parameters
[in]contentsInitial text content.
[in]parentOptional parent widget.

Member Function Documentation

◆ setText()

void QtlLineEdit::setText ( const QString &  s)

Set the line edit's text.

Override superclass. Maintain the cursor position when possible.

Parameters
[in]sText to set.

◆ dragEnterEvent()

void QtlLineEdit::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Invoked when a drag operation enters the widget.

Parameters
[in,out]eventThe notified event.

◆ dropEvent()

void QtlLineEdit::dropEvent ( QDropEvent *  event)
protectedvirtual

Invoked when a drop operation is performed.

Parameters
[in,out]eventThe notified event.

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