Loading...
Searching...
No Matches

Detailed Description

Classes

class  FilterTarget
 
class  FilterEdit
 
class  FilteredView
 

Class Documentation

◆ FilterTarget

class FilterTarget

Public Member Functions

virtual ~FilterTarget ()
 
virtual void setFilter (const std::string &filter)=0
 
virtual void scrollToFirstItem ()=0
 
virtual void scrollToCurrentItem ()=0
 
virtual void selectFirstItem ()=0
 
virtual void activateFirstItem ()=0
 
virtual void closeFilter ()
 

Constructor & Destructor Documentation

◆ ~FilterTarget()

virtual FilterTarget::~FilterTarget ( )
inlinevirtual

Member Function Documentation

◆ setFilter()

virtual void FilterTarget::setFilter ( const std::string & filter)
pure virtual

◆ scrollToFirstItem()

virtual void FilterTarget::scrollToFirstItem ( )
pure virtual

◆ scrollToCurrentItem()

virtual void FilterTarget::scrollToCurrentItem ( )
pure virtual

◆ selectFirstItem()

virtual void FilterTarget::selectFirstItem ( )
pure virtual

◆ activateFirstItem()

virtual void FilterTarget::activateFirstItem ( )
pure virtual

◆ closeFilter()

virtual void FilterTarget::closeFilter ( )
virtual

Reimplemented in LogView.

◆ FilterEdit

class FilterEdit

Public Member Functions

 FilterEdit (FilterTarget *target)
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event) override
 
virtual void keyPressEvent (QKeyEvent *event) override
 

Constructor & Destructor Documentation

◆ FilterEdit()

FilterEdit::FilterEdit ( FilterTarget * target)

Member Function Documentation

◆ paintEvent()

virtual void FilterEdit::paintEvent ( QPaintEvent * event)
overrideprotectedvirtual

◆ keyPressEvent()

virtual void FilterEdit::keyPressEvent ( QKeyEvent * event)
overrideprotectedvirtual

◆ FilteredView

class FilteredView

Public Member Functions

 FilteredView (QWidget *parent, QWidget *filtered, FilterTarget *target, FilterEdit *edit=nullptr)
 
void setFilterPlaceholderText (const QString &text)
 
void setFilterToolTip (const QString &text)
 
void updateFonts ()
 
void clearFilter ()
 
void showFilter (const QString &initialText)
 

Static Public Member Functions

static bool match (const std::string &name, const std::string &filter)
 

Constructor & Destructor Documentation

◆ FilteredView()

FilteredView::FilteredView ( QWidget * parent,
QWidget * filtered,
FilterTarget * target,
FilterEdit * edit = nullptr )

Member Function Documentation

◆ setFilterPlaceholderText()

void FilteredView::setFilterPlaceholderText ( const QString & text)

◆ setFilterToolTip()

void FilteredView::setFilterToolTip ( const QString & text)

◆ updateFonts()

void FilteredView::updateFonts ( )

◆ clearFilter()

void FilteredView::clearFilter ( )

◆ showFilter()

void FilteredView::showFilter ( const QString & initialText)

◆ match()

static bool FilteredView::match ( const std::string & name,
const std::string & filter )
static