KItemViews
ktreewidgetsearchline.h
35 Q_PROPERTY(Qt::CaseSensitivity caseSensitity READ caseSensitivity WRITE setCaseSensitivity NOTIFY caseSensitivityChanged)
36 Q_PROPERTY(bool keepParentsVisible READ keepParentsVisible WRITE setKeepParentsVisible NOTIFY keepParentsVisibleChanged)
virtual void disconnectTreeWidget(QTreeWidget *)
Disconnects signals of a listviews from the search line.
Definition ktreewidgetsearchline.cpp:473
virtual bool canChooseColumnsCheck()
Checks columns in all listviews and decides whether choosing columns to filter on makes any sense.
Definition ktreewidgetsearchline.cpp:480
void searchUpdated(const QString &searchString)
This signal is emitted when user finished entering filter text or when he made a pause long enough,...
KTreeWidgetSearchLine(QWidget *parent=nullptr, QTreeWidget *treeWidget=nullptr)
Constructs a KTreeWidgetSearchLine with treeWidget being the QTreeWidget to be filtered.
Definition ktreewidgetsearchline.cpp:205
void removeTreeWidget(QTreeWidget *treeWidget)
Removes a QTreeWidget from the list of listviews filtered by this search line.
Definition ktreewidgetsearchline.cpp:281
void setTreeWidgets(const QList< QTreeWidget * > &treeWidgets)
Sets QTreeWidgets that are filtered by this search line, replacing any previously filtered listviews.
Definition ktreewidgetsearchline.cpp:363
~KTreeWidgetSearchLine() override
Destroys the KTreeWidgetSearchLine.
virtual void updateSearch(const QString &pattern=QString())
Updates search to only make visible the items that match pattern.
Definition ktreewidgetsearchline.cpp:297
void addTreeWidget(QTreeWidget *treeWidget)
Adds a QTreeWidget to the list of listviews filtered by this search line.
Definition ktreewidgetsearchline.cpp:269
void setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)
Make the search case sensitive or case insensitive.
Definition ktreewidgetsearchline.cpp:332
virtual bool itemMatches(const QTreeWidgetItem *item, const QString &pattern) const
Returns true if item matches the search pattern.
Definition ktreewidgetsearchline.cpp:384
bool event(QEvent *event) override
Re-implemented for internal reasons.
Definition ktreewidgetsearchline.cpp:525
QList< QTreeWidget * > treeWidgets() const
Returns the list of pointers to listviews that are currently filtered by the search.
Definition ktreewidgetsearchline.cpp:260
QList< int > searchColumns() const
Returns the current list of columns that will be searched.
Definition ktreewidgetsearchline.cpp:237
void hiddenChanged(QTreeWidgetItem *, bool)
This signal is emitted whenever an item gets hidden or unhidden due to it not matching or matching th...
virtual void connectTreeWidget(QTreeWidget *)
Connects signals of this listview to the appropriate slots of the search line.
Definition ktreewidgetsearchline.cpp:466
void setSearchColumns(const QList< int > &columns)
Sets the list of columns to be searched.
Definition ktreewidgetsearchline.cpp:350
void setTreeWidget(QTreeWidget *treeWidget)
Sets the QTreeWidget that is filtered by this search line, replacing any previously filtered listview...
Definition ktreewidgetsearchline.cpp:357
void setKeepParentsVisible(bool value)
When a search is active on a list that's organized into a tree view if a parent or ancesestor of an i...
Definition ktreewidgetsearchline.cpp:341
Qt::CaseSensitivity caseSensitivity() const
Returns true if the search is case sensitive.
Definition ktreewidgetsearchline.cpp:232
QTreeWidget * treeWidget() const
Returns the listview that is currently filtered by the search.
Definition ktreewidgetsearchline.cpp:251
QLineEdit(QWidget *parent)
virtual void contextMenuEvent(QContextMenuEvent *event) override
virtual bool event(QEvent *e) override
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
CaseSensitivity
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.