digiKam
Digikam::ProxyClickLineEdit Class Reference
+ Inheritance diagram for Digikam::ProxyClickLineEdit:

Signals

void leftClicked ()
 
void signalClearButtonPressed ()
 

Public Member Functions

 ProxyClickLineEdit (QWidget *const parent=nullptr)
 
void setClearButtonShown (bool show)
 
virtual void setWidget (QWidget *widget)
 

Protected Member Functions

void changeEvent (QEvent *event) override
 
void contextMenuEvent (QContextMenuEvent *event) override
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dragLeaveEvent (QDragLeaveEvent *e) override
 
void dragMoveEvent (QDragMoveEvent *e) override
 
void dropEvent (QDropEvent *event) override
 
void focusInEvent (QFocusEvent *event) override
 
void focusOutEvent (QFocusEvent *event) override
 
void inputMethodEvent (QInputMethodEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 
QSize minimumSizeHint () const override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
QSize sizeHint () const override
 

Protected Attributes

QVBoxLayout * m_layout
 
QWidget * m_widget
 

Constructor & Destructor Documentation

◆ ProxyClickLineEdit()

Digikam::ProxyClickLineEdit::ProxyClickLineEdit ( QWidget *const  parent = nullptr)
explicit

A ProxyLineEdit that emits leftClicked() on mouse press event. Press on the held widget will result in the signal if the widget does not accept() them.

Member Function Documentation

◆ changeEvent()

void Digikam::ProxyLineEdit::changeEvent ( QEvent *  event)
overrideprotectedinherited

◆ contextMenuEvent()

void Digikam::ProxyLineEdit::contextMenuEvent ( QContextMenuEvent *  event)
overrideprotectedinherited

◆ dragEnterEvent()

void Digikam::ProxyLineEdit::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedinherited

◆ dragLeaveEvent()

void Digikam::ProxyLineEdit::dragLeaveEvent ( QDragLeaveEvent *  e)
overrideprotectedinherited

◆ dragMoveEvent()

void Digikam::ProxyLineEdit::dragMoveEvent ( QDragMoveEvent *  e)
overrideprotectedinherited

◆ dropEvent()

void Digikam::ProxyLineEdit::dropEvent ( QDropEvent *  event)
overrideprotectedinherited

◆ focusInEvent()

void Digikam::ProxyLineEdit::focusInEvent ( QFocusEvent *  event)
overrideprotectedinherited

◆ focusOutEvent()

void Digikam::ProxyLineEdit::focusOutEvent ( QFocusEvent *  event)
overrideprotectedinherited

◆ inputMethodEvent()

void Digikam::ProxyLineEdit::inputMethodEvent ( QInputMethodEvent *  event)
overrideprotectedinherited

◆ keyPressEvent()

void Digikam::ProxyLineEdit::keyPressEvent ( QKeyEvent *  event)
overrideprotectedinherited

◆ leftClicked

void Digikam::ProxyClickLineEdit::leftClicked ( )
signal

Referenced by mouseReleaseEvent().

◆ minimumSizeHint()

QSize Digikam::ProxyLineEdit::minimumSizeHint ( ) const
overrideprotectedinherited

◆ mouseDoubleClickEvent()

void Digikam::ProxyLineEdit::mouseDoubleClickEvent ( QMouseEvent *  event)
overrideprotectedinherited

◆ mouseMoveEvent()

void Digikam::ProxyLineEdit::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedinherited

We just re-implement all relevant QWidget event handlers and call the QWidget implementation, not the QLineEdit one.

◆ mousePressEvent()

void Digikam::ProxyLineEdit::mousePressEvent ( QMouseEvent *  event)
overrideprotectedinherited

NOTE: see bug #326718: We need to use QLineEdit parent class with these methods to have clear button working fine.

◆ mouseReleaseEvent()

void Digikam::ProxyClickLineEdit::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

◆ paintEvent()

void Digikam::ProxyLineEdit::paintEvent ( QPaintEvent *  event)
overrideprotectedinherited

◆ setClearButtonShown()

void Digikam::ProxyLineEdit::setClearButtonShown ( bool  show)
inherited

◆ setWidget()

void Digikam::ProxyLineEdit::setWidget ( QWidget *  widget)
virtualinherited

◆ signalClearButtonPressed

void Digikam::ProxyLineEdit::signalClearButtonPressed ( )
signalinherited

◆ sizeHint()

QSize Digikam::ProxyLineEdit::sizeHint ( ) const
overrideprotectedinherited

Member Data Documentation

◆ m_layout

QVBoxLayout* Digikam::ProxyLineEdit::m_layout
protectedinherited

◆ m_widget

QWidget* Digikam::ProxyLineEdit::m_widget
protectedinherited

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