KDEUI
ktreewidgetsearchline.cpp
Go to the documentation of this file.
84 void KTreeWidgetSearchLine::Private::_k_rowsInserted( const QModelIndex & parentIndex, int start, int end ) const
134 if ( searchColumns.count() == treeWidgets.first()->header()->count() - treeWidgets.first()->header()->hiddenSectionCount() )
388 bool KTreeWidgetSearchLine::itemMatches( const QTreeWidgetItem *item, const QString &pattern ) const
442 QAction* columnAction = subMenu->addAction( d->treeWidgets.first()->headerItem()->icon( i ), columnText );
526 if(keyEvent->matches(QKeySequence::MoveToNextLine) || keyEvent->matches(QKeySequence::SelectNextLine) ||
527 keyEvent->matches(QKeySequence::MoveToPreviousLine) || keyEvent->matches(QKeySequence::SelectPreviousLine) ||
528 keyEvent->matches(QKeySequence::MoveToNextPage) || keyEvent->matches(QKeySequence::SelectNextPage) ||
529 keyEvent->matches(QKeySequence::MoveToPreviousPage) || keyEvent->matches(QKeySequence::SelectPreviousPage) ||
579 KTreeWidgetSearchLineWidget::KTreeWidgetSearchLineWidget( QWidget *parent, QTreeWidget *treeWidget )
594 KTreeWidgetSearchLine *KTreeWidgetSearchLineWidget::createSearchLine( QTreeWidget *treeWidget ) const
QString i18n(const char *text)
This class makes it easy to add a search line for filtering the items in listviews based on a simple ...
Definition: ktreewidgetsearchline.h:38
const char header[]
KTreeWidgetSearchLine * searchLine() const
Returns a pointer to the search line.
Definition: ktreewidgetsearchline.cpp:615
virtual bool event(QEvent *event)
Re-implemented for internal reasons.
Definition: ktreewidgetsearchline.cpp:522
virtual ~KTreeWidgetSearchLine()
Destroys the KTreeWidgetSearchLine.
Definition: ktreewidgetsearchline.cpp:243
QMenu * createStandardContextMenu()
Re-implemented for internal reasons.
Definition: klineedit.cpp:1180
QString label(StandardShortcut id)
Returns a localized label for user-visible display.
Definition: kstandardshortcut.cpp:267
Qt::CaseSensitivity caseSensitivity() const
Returns true if the search is case sensitive.
Definition: ktreewidgetsearchline.cpp:248
KTreeWidgetSearchLine(QWidget *parent=0, QTreeWidget *treeWidget=0)
Constructs a KTreeWidgetSearchLine with treeWidget being the QTreeWidget to be filtered.
Definition: ktreewidgetsearchline.cpp:218
KTreeWidgetSearchLineWidget(QWidget *parent=0, QTreeWidget *treeWidget=0)
Creates a KTreeWidgetSearchLineWidget for treeWidget with parent as the parent.
Definition: ktreewidgetsearchline.cpp:579
QList< int > searchColumns() const
Returns the current list of columns that will be searched.
Definition: ktreewidgetsearchline.cpp:253
virtual bool canChooseColumnsCheck()
Checks columns in all listviews and decides whether choosing columns to filter on makes any sense...
Definition: ktreewidgetsearchline.cpp:483
virtual void updateSearch(const QString &pattern=QString())
Updates search to only make visible the items that match pattern.
Definition: ktreewidgetsearchline.cpp:312
void addTreeWidget(QTreeWidget *treeWidget)
Adds a QTreeWidget to the list of listviews filtered by this search line.
Definition: ktreewidgetsearchline.cpp:284
QTreeWidget * treeWidget() const
Returns the listview that is currently filtered by the search.
Definition: ktreewidgetsearchline.cpp:266
void setTreeWidgets(const QList< QTreeWidget * > &treeWidgets)
Sets QTreeWidgets that are filtered by this search line, replacing any previously filtered listviews...
Definition: ktreewidgetsearchline.cpp:369
virtual bool itemMatches(const QTreeWidgetItem *item, const QString &pattern) const
Returns true if item matches the search pattern.
Definition: ktreewidgetsearchline.cpp:388
void setTreeWidget(QTreeWidget *treeWidget)
Sets the QTreeWidget that is filtered by this search line, replacing any previously filtered listview...
Definition: ktreewidgetsearchline.cpp:363
void setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)
Make the search case sensitive or case insensitive.
Definition: ktreewidgetsearchline.cpp:341
QList< QTreeWidget * > treeWidgets() const
Returns the list of pointers to listviews that are currently filtered by the search.
Definition: ktreewidgetsearchline.cpp:274
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:349
virtual void contextMenuEvent(QContextMenuEvent *)
Re-implemented for internal reasons.
Definition: ktreewidgetsearchline.cpp:414
void setClearButtonShown(bool show)
This makes the line edit display an icon on one side of the line edit which, when clicked...
Definition: klineedit.cpp:284
void setSearchColumns(const QList< int > &columns)
Sets the list of columns to be searched.
Definition: ktreewidgetsearchline.cpp:357
virtual void createWidgets()
Creates the widgets inside of the widget.
Definition: ktreewidgetsearchline.cpp:599
~KTreeWidgetSearchLineWidget()
Destroys the KTreeWidgetSearchLineWidget.
Definition: ktreewidgetsearchline.cpp:589
virtual void connectTreeWidget(QTreeWidget *)
Connects signals of this listview to the appropriate slots of the search line.
Definition: ktreewidgetsearchline.cpp:465
bool keepParentsVisible() const
If this is true (the default) then the parents of matched items will also be shown.
virtual void disconnectTreeWidget(QTreeWidget *)
Disconnects signals of a listviews from the search line.
Definition: ktreewidgetsearchline.cpp:474
void removeTreeWidget(QTreeWidget *treeWidget)
Removes a QTreeWidget from the list of listviews filtered by this search line.
Definition: ktreewidgetsearchline.cpp:296
virtual KTreeWidgetSearchLine * createSearchLine(QTreeWidget *treeWidget) const
Creates the search line.
Definition: ktreewidgetsearchline.cpp:594
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:16 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:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.