KDE3Support
k3listviewsearchline.cpp
Go to the documentation of this file.
288 connect(subMenu, SIGNAL(triggered(QAction*)), this, SLOT(searchColumnsMenuActivated(QAction*)));
481 bool K3ListViewSearchLine::checkItemParentsVisible(Q3ListViewItem *item, Q3ListViewItem *highestHiddenParent)
488 Q3ListViewItem * hhp = highestHiddenParent ? highestHiddenParent : item->isVisible() ? 0L : item;
selectionMode
QString i18n(const char *text)
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
virtual QString text(int column) const
void setListView(K3ListView *lv)
Sets the K3ListView that is filtered by this search line, replacing any previously filtered listviews...
Definition: k3listviewsearchline.cpp:226
Q3ListViewItem * nextSibling() const
const char header[]
virtual void contextMenuEvent(QContextMenuEvent *e)
Re-implemented for internal reasons.
Definition: k3listviewsearchline.cpp:281
bool keepParentsVisible() const
If this is true (the default) then the parents of matched items will also be shown.
Definition: k3listviewsearchline.cpp:110
bool isVisible() const
QString text() const
QMenu * createStandardContextMenu()
void setChecked(bool)
columns
QVariant data() const
virtual void updateSearch(const QString &s=QString())
Updates search to only make visible the items that match s.
Definition: k3listviewsearchline.cpp:161
int mapToIndex(int section) const
QString label(StandardShortcut id)
QList< int > searchColumns() const
Returns the current list of columns that will be searched.
Definition: k3listviewsearchline.cpp:102
visible
void textChanged(const QString &text)
virtual bool canChooseColumnsCheck()
Checks columns in all listviews and decides whether choosing columns to filter on makes any sense...
Definition: k3listviewsearchline.cpp:349
void ensureItemVisible(const Q3ListViewItem *i)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void activateSearch()
When the timer started with queueSearch() expires this slot is called.
Definition: k3listviewsearchline.cpp:398
K3ListViewSearchLineWidget(K3ListView *listView=0, QWidget *parent=0)
Creates a K3ListViewSearchLineWidget for listView with parent as the parent with and name...
Definition: k3listviewsearchline.cpp:531
QString i18nc(const char *ctxt, const char *text)
bool isNull() const
void setBuddy(QWidget *buddy)
virtual bool itemMatches(const Q3ListViewItem *item, const QString &s) const
Returns true if item matches the search s.
Definition: k3listviewsearchline.cpp:252
Q3ListViewItem * current() const
K3ListViewSearchLine * searchLine() const
Returns a pointer to the search line.
Definition: k3listviewsearchline.cpp:567
virtual void createWidgets()
Creates the widgets inside of the widget.
Definition: k3listviewsearchline.cpp:555
void setEnabled(bool)
void append(const T &value)
Definition: k3listview.h:112
virtual void disconnectListView(K3ListView *)
Disconnects signals of a listviews from the search line.
Definition: k3listviewsearchline.cpp:341
int toInt(bool *ok) const
int mapToSection(int index) const
Q3ListViewItem * selectedItem() const
void setObjectName(const QString &name)
bool isEmpty() const
virtual void connectListView(K3ListView *)
Connects signals of this listview to the appropriate slots of the search line.
Definition: k3listviewsearchline.cpp:333
virtual ~K3ListViewSearchLine()
Destroys the K3ListViewSearchLine.
Definition: k3listviewsearchline.cpp:92
Q3ListView * listView() const
void hide()
~K3ListViewSearchLineWidget()
Destroys the K3ListViewSearchLineWidget.
Definition: k3listviewsearchline.cpp:543
void queueSearch(const QString &search)
When keys are pressed a new search string is created and a timer is activated.
Definition: k3listviewsearchline.cpp:391
This Widget extends the functionality of Q3ListView to honor the system wide settings for Single Clic...
Definition: k3listview.h:57
void setKeepParentsVisible(bool v)
When a search is active on a list that's organized into a tree view if a parent or ancesestor of an i...
Definition: k3listviewsearchline.cpp:215
This class makes it easy to add a search line for filtering the items in listviews based on a simple ...
Definition: k3listviewsearchline.h:38
K3ListView * listView() const
Returns the listview that is currently filtered by the search.
Definition: k3listviewsearchline.cpp:115
Q3ListViewItem * firstChild() const
void setData(const QVariant &userData)
bool caseSensitive() const
Returns true if the search is case sensitive.
Definition: k3listviewsearchline.cpp:97
void setCheckable(bool)
void setVisible(bool b)
QRect itemRect(const Q3ListViewItem *item) const
K3ListViewSearchLine(QWidget *parent=0, K3ListView *listView=0)
Constructs a K3ListViewSearchLine with listView being the K3ListView to be filtered.
Definition: k3listviewsearchline.cpp:64
void setCaseSensitive(bool cs)
Make the search case sensitive or case insensitive.
Definition: k3listviewsearchline.cpp:210
typedef ConstIterator
void setSpacing(int space)
int columnWidth(int c) const
void removeListView(K3ListView *lv)
Removes a K3ListView from the list of listviews filtered by this search line.
Definition: k3listviewsearchline.cpp:145
void setClearButtonShown(bool show)
Q3ListViewItem * firstChild() const
void show()
const_iterator constEnd() const
Definition: k3listview.h:109
const_iterator constBegin() const
const QList< K3ListView * > & listViews() const
Returns the list of pointers to listviews that are currently filtered by the search.
Definition: k3listviewsearchline.cpp:123
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual K3ListViewSearchLine * createSearchLine(K3ListView *listView)
Creates the search line.
Definition: k3listviewsearchline.cpp:548
void setSearchColumns(const QList< int > &columns)
Sets the list of columns to be searched.
Definition: k3listviewsearchline.cpp:220
void addListView(K3ListView *lv)
Adds a K3ListView to the list of listviews filtered by this search line.
Definition: k3listviewsearchline.cpp:133
void setListViews(const QList< K3ListView * > &lv)
Sets K3ListViews that are filtered by this search line, replacing any previously filtered listviews...
Definition: k3listviewsearchline.cpp:232
void destroyed(QObject *obj)
QString columnText(int c) const
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 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:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.