• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

klistwidgetsearchline.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the KDE libraries
00003   Copyright (c) 2003 Scott Wheeler <wheeler@kde.org>
00004   Copyright (c) 2004 Gustavo Sverzut Barbieri <gsbarbieri@users.sourceforge.net>
00005 
00006   This library is free software; you can redistribute it and/or
00007   modify it under the terms of the GNU Library General Public
00008   License version 2 as published by the Free Software Foundation.
00009 
00010   This library is distributed in the hope that it will be useful,
00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013   Library General Public License for more details.
00014 
00015   You should have received a copy of the GNU Library General Public License
00016   along with this library; see the file COPYING.LIB.  If not, write to
00017   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018   Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KLISTWIDGETSEARCHLINE_H
00022 #define KLISTWIDGETSEARCHLINE_H
00023 
00024 #include <klineedit.h>
00025 
00026 class QListWidget;
00027 class QListWidgetItem;
00028 
00036 class KDEUI_EXPORT KListWidgetSearchLine : public KLineEdit
00037 {
00038     Q_OBJECT
00039 
00040 public:
00041 
00049     explicit KListWidgetSearchLine( QWidget *parent = 0,
00050                                     QListWidget *listWidget = 0 );
00051 
00055     virtual ~KListWidgetSearchLine();
00056 
00062     Qt::CaseSensitivity caseSensitive() const;
00063 
00069     QListWidget *listWidget() const;
00070 
00071 
00072 public Q_SLOTS:
00077     virtual void updateSearch( const QString &s = QString() );
00078 
00084     void setCaseSensitivity( Qt::CaseSensitivity cs );
00085 
00092     void setListWidget( QListWidget *lv );
00093 
00094 
00098     void clear();
00099 
00100 protected:
00106     virtual bool itemMatches( const QListWidgetItem *item,
00107                               const QString &s ) const;
00111     virtual bool event(QEvent *event);
00112 
00113 private:
00114     class KListWidgetSearchLinePrivate;
00115     KListWidgetSearchLinePrivate * const d;
00116 
00117     Q_PRIVATE_SLOT(d, void _k_listWidgetDeleted())
00118     Q_PRIVATE_SLOT(d, void _k_queueSearch(const QString&))
00119     Q_PRIVATE_SLOT(d, void _k_activateSearch())
00120 };
00121 
00122 
00123 #endif /* KLISTWIDGETSEARCHLINE_H */

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal