summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/kopetelistviewsearchline.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kopete/libkopete/ui/kopetelistviewsearchline.h
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/ui/kopetelistviewsearchline.h')
-rw-r--r--kopete/libkopete/ui/kopetelistviewsearchline.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/kopete/libkopete/ui/kopetelistviewsearchline.h b/kopete/libkopete/ui/kopetelistviewsearchline.h
new file mode 100644
index 00000000..a453b844
--- /dev/null
+++ b/kopete/libkopete/ui/kopetelistviewsearchline.h
@@ -0,0 +1,66 @@
+/*
+ kopetelistviewsearchline.h - a widget for performing quick searches of Kopete::ListViews
+
+ Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
+
+ Kopete (c) 2004 by the Kopete developers <kopete-devel@kde.org>
+
+ *************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ *************************************************************************
+*/
+
+#ifndef KOPETELISTVIEWSEARCHLINE_H
+#define KOPETELISTVIEWSEARCHLINE_H
+
+#include <klistviewsearchline.h>
+
+namespace Kopete {
+namespace UI {
+namespace ListView {
+
+class ListView;
+
+class SearchLine : public KListViewSearchLine
+{
+ Q_OBJECT
+public:
+ /**
+ * Constructs a SearchLine with \a listView being the
+ * ListView to be filtered.
+ *
+ * If \a listView is null then the widget will be disabled until a listview
+ * is set with setListView().
+ */
+ SearchLine( QWidget *parent, ListView *listView = 0, const char *name = 0 );
+ /**
+ * Constructs a SearchLine without any ListView to filter. The
+ * KListView object has to be set later with setListView().
+ */
+ SearchLine(QWidget *parent, const char *name);
+ /**
+ * Destroys the SearchLine.
+ */
+ ~SearchLine();
+
+ void updateSearch( const QString &s );
+
+protected:
+ virtual void checkItemParentsNotVisible();
+ virtual bool checkItemParentsVisible( QListViewItem *it );
+ virtual void setItemVisible( QListViewItem *it, bool visible );
+
+private:
+ QString search;
+};
+
+} // end namespace ListView
+} // end namespace UI
+} // end namespace Kopete
+
+#endif