KDEUI
klistwidgetsearchline.cpp
Go to the documentation of this file.
177 void KListWidgetSearchLine::KListWidgetSearchLinePrivate::updateHiddenState( int start, int end ) {
211 if(keyEvent->matches(QKeySequence::MoveToNextLine) || keyEvent->matches(QKeySequence::SelectNextLine) ||
212 keyEvent->matches(QKeySequence::MoveToPreviousLine) || keyEvent->matches(QKeySequence::SelectPreviousLine) ||
213 keyEvent->matches(QKeySequence::MoveToNextPage) || keyEvent->matches(QKeySequence::SelectNextPage) ||
214 keyEvent->matches(QKeySequence::MoveToPreviousPage) || keyEvent->matches(QKeySequence::SelectPreviousPage)
263 void KListWidgetSearchLine::KListWidgetSearchLinePrivate::_k_rowsInserted( const QModelIndex &parent, int start, int end )
272 void KListWidgetSearchLine::KListWidgetSearchLinePrivate::_k_dataChanged( const QModelIndex & topLeft, const QModelIndex & bottomRight )
void clear()
Clear line edit and empty hiddenItems, returning elements to listWidget.
Definition: klistwidgetsearchline.cpp:98
virtual void updateSearch(const QString &s=QString())
Updates search to only make visible the items that match s.
Definition: klistwidgetsearchline.cpp:90
void setCaseSensitivity(Qt::CaseSensitivity cs)
Make the search case sensitive or case insensitive.
Definition: klistwidgetsearchline.cpp:112
virtual void clear()
Reimplemented to workaround a buggy QLineEdit::clear() (changing the clipboard to the text we just ha...
Definition: klineedit.cpp:1698
void setListWidget(QListWidget *lv)
Sets the QListWidget that is filtered by this search line.
Definition: klistwidgetsearchline.cpp:117
virtual ~KListWidgetSearchLine()
Destroys the KListWidgetSearchLine.
Definition: klistwidgetsearchline.cpp:71
QListWidget * listWidget() const
Returns the listWidget that is currently filtered by the search.
Definition: klistwidgetsearchline.cpp:82
KListWidgetSearchLine(QWidget *parent=0, QListWidget *listWidget=0)
Constructs a KListWidgetSearchLine with listWidget being the QListWidget to be filtered.
Definition: klistwidgetsearchline.cpp:63
virtual bool itemMatches(const QListWidgetItem *item, const QString &s) const
Returns true if item matches the search s.
Definition: klistwidgetsearchline.cpp:142
This class makes it easy to add a search line for filtering the items in a listwidget based on a simp...
Definition: klistwidgetsearchline.h:37
Qt::CaseSensitivity caseSensitive() const
Returns if the search is case sensitive.
Definition: klistwidgetsearchline.cpp:77
virtual bool event(QEvent *event)
Re-implemented for internal reasons.
Definition: klistwidgetsearchline.cpp:207
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.