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

Signals

void signalClearButtonPressed ()
 

Public Member Functions

 ProxyLineEdit (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

◆ ProxyLineEdit()

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

This class will not act as a QLineEdit at all, but present another widget (any kind of widget) instead in the space assigned to the QLineEdit. Use this class if you need to pass a QLineEdit but want actually to use a different widget.

References m_layout, and setClearButtonShown().

Member Function Documentation

◆ changeEvent()

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

◆ contextMenuEvent()

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

◆ dragEnterEvent()

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

◆ dragLeaveEvent()

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

◆ dragMoveEvent()

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

◆ dropEvent()

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

◆ focusInEvent()

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

◆ focusOutEvent()

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

◆ inputMethodEvent()

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

◆ keyPressEvent()

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

◆ minimumSizeHint()

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

◆ mouseDoubleClickEvent()

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

◆ mouseMoveEvent()

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

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)
overrideprotected

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

◆ mouseReleaseEvent()

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

◆ paintEvent()

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

◆ setClearButtonShown()

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

References m_layout.

Referenced by ProxyLineEdit().

◆ setWidget()

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

After constructing, set the actual widget here

References m_layout, and m_widget.

Referenced by Digikam::ChoiceSearchComboBox::installView(), and Digikam::RatingComboBox::RatingComboBox().

◆ signalClearButtonPressed

void Digikam::ProxyLineEdit::signalClearButtonPressed ( )
signal

◆ sizeHint()

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

Member Data Documentation

◆ m_layout

QVBoxLayout* Digikam::ProxyLineEdit::m_layout
protected

◆ m_widget

QWidget* Digikam::ProxyLineEdit::m_widget
protected

Referenced by setWidget().


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