Plasma Engine  2.0
Loading...
Searching...
No Matches
plQtSearchWidget Class Reference

A widget that contains a line edit for a search text and a button to clear the search text. More...

#include <SearchWidget.moc.h>

Inheritance diagram for plQtSearchWidget:

Signals

void textChanged (const QString &sText)
 Passed through from the QLineEdit.
 
void enterPressed ()
 The user pressed the enter key.
 
void specialKeyPressed (Qt::Key key)
 This signal is sent when certain keys are pressed that could be used by external code to implement additional features. Currently exposed: Qt::Key_Up, Qt::Key_Down Qt::Key_Tab, Qt::Key_Backtab (that's SHIFT+Tab) Qt::Key_F1, Qt::Key_F2, Qt::Key_F3.
 
void visibleEvent ()
 

Public Member Functions

 plQtSearchWidget (QWidget *pParent)
 
void setText (const QString &sText)
 Passed through to the QLineEdit.
 
QString text () const
 Passed through from the QLineEdit.
 
void setPlaceholderText (const QString &sText)
 Passed through to the QLineEdit.
 
void selectAll ()
 Passed through to the QLineEdit.
 

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *e) override
 
virtual void showEvent (QShowEvent *e) override
 

Protected Attributes

QLineEdit * m_pLineEdit
 
QPushButton * m_pClearButton
 

Detailed Description

A widget that contains a line edit for a search text and a button to clear the search text.

The clear button is only active when the line edit has text. The text can be cleared by pressing ESC while the line edit has focus.


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