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
QLayout * layout() 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
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
Type type() const
const char header[]
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
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
QTreeWidgetItem * child(int index) const
QString text() const
void scrollToItem(const QTreeWidgetItem *item, QAbstractItemView::ScrollHint hint)
QMenu * createStandardContextMenu()
Re-implemented for internal reasons.
Definition: klineedit.cpp:1180
bool isChecked() const
QVariant data() const
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
visible
KTreeWidgetSearchLine(QWidget *parent=0, QTreeWidget *treeWidget=0)
Constructs a KTreeWidgetSearchLine with treeWidget being the QTreeWidget to be filtered.
Definition: ktreewidgetsearchline.cpp:218
void textChanged(const QString &text)
KTreeWidgetSearchLineWidget(QWidget *parent=0, QTreeWidget *treeWidget=0)
Creates a KTreeWidgetSearchLineWidget for treeWidget with parent as the parent.
Definition: ktreewidgetsearchline.cpp:579
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QList< int > searchColumns() const
Returns the current list of columns that will be searched.
Definition: ktreewidgetsearchline.cpp:253
bool isNull() const
virtual bool canChooseColumnsCheck()
Checks columns in all listviews and decides whether choosing columns to filter on makes any sense...
Definition: ktreewidgetsearchline.cpp:483
void setBuddy(QWidget *buddy)
virtual void updateSearch(const QString &pattern=QString())
Updates search to only make visible the items that match pattern.
Definition: ktreewidgetsearchline.cpp:312
int columnWidth(int column) const
void addTreeWidget(QTreeWidget *treeWidget)
Adds a QTreeWidget to the list of listviews filtered by this search line.
Definition: ktreewidgetsearchline.cpp:284
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void append(const T &value)
int toInt(bool *ok) const
bool isSectionHidden(int logicalIndex) const
void setFocusProxy(QWidget *w)
bool isEmpty() const
bool sendEvent(QObject *receiver, QEvent *event)
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
bool isHidden() const
QTreeWidgetItem * currentItem() const
virtual bool itemMatches(const QTreeWidgetItem *item, const QString &pattern) const
Returns true if item matches the search pattern.
Definition: ktreewidgetsearchline.cpp:388
QTreeWidget * treeWidget() const
void setMargin(int margin)
columnCount
bool matches(QKeySequence::StandardKey key) const
QTreeWidgetItem * itemFromIndex(const QModelIndex &index) const
void setHidden(bool hide)
void setData(const QVariant &userData)
void setTreeWidget(QTreeWidget *treeWidget)
Sets the QTreeWidget that is filtered by this search line, replacing any previously filtered listview...
Definition: ktreewidgetsearchline.cpp:363
int key() const
void setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)
Make the search case sensitive or case insensitive.
Definition: ktreewidgetsearchline.cpp:341
void setCheckable(bool)
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
QTreeWidgetItem * headerItem() const
void end(bool mark)
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
void setActionGroup(QActionGroup *group)
typedef ConstIterator
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
void show()
virtual void connectTreeWidget(QTreeWidget *)
Connects signals of this listview to the appropriate slots of the search line.
Definition: ktreewidgetsearchline.cpp:465
QTreeWidgetItem * topLevelItem(int index) const
const_iterator constEnd() const
const_iterator constBegin() const
bool keepParentsVisible() const
If this is true (the default) then the parents of matched items will also be shown.
int logicalIndex(int visualIndex) const
QAbstractItemModel * model() const
topLevelItemCount
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void setExclusive(bool)
int childCount() const
virtual void disconnectTreeWidget(QTreeWidget *)
Disconnects signals of a listviews from the search line.
Definition: ktreewidgetsearchline.cpp:474
QString text(int column) const
void setHidden(bool hidden)
void removeTreeWidget(QTreeWidget *treeWidget)
Removes a QTreeWidget from the list of listviews filtered by this search line.
Definition: ktreewidgetsearchline.cpp:296
void destroyed(QObject *obj)
int count() const
virtual KTreeWidgetSearchLine * createSearchLine(QTreeWidget *treeWidget) const
Creates the search line.
Definition: ktreewidgetsearchline.cpp:594
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 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:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.