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 )
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
Type type() const
QString text() const
void clear()
Clear line edit and empty hiddenItems, returning elements to listWidget.
Definition: klistwidgetsearchline.cpp:98
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
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
bool isNull() const
bool isValid() const
void setEnabled(bool)
void setListWidget(QListWidget *lv)
Sets the QListWidget that is filtered by this search line.
Definition: klistwidgetsearchline.cpp:117
bool isEmpty() const
bool isHidden() const
int row() const
bool sendEvent(QObject *receiver, QEvent *event)
virtual ~KListWidgetSearchLine()
Destroys the KListWidgetSearchLine.
Definition: klistwidgetsearchline.cpp:71
QModelIndex parent() const
bool matches(QKeySequence::StandardKey key) const
QListWidget * listWidget() const
Returns the listWidget that is currently filtered by the search.
Definition: klistwidgetsearchline.cpp:82
void setHidden(bool hide)
KListWidgetSearchLine(QWidget *parent=0, QListWidget *listWidget=0)
Constructs a KListWidgetSearchLine with listWidget being the QListWidget to be filtered.
Definition: klistwidgetsearchline.cpp:63
int key() const
virtual bool itemMatches(const QListWidgetItem *item, const QString &s) const
Returns true if item matches the search s.
Definition: klistwidgetsearchline.cpp:142
void end(bool mark)
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
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
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
void destroyed(QObject *obj)
QString text() const
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.