• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi/contact

  • Akonadi
  • Akonadi::ContactsFilterProxyModel
Public Slots | Public Member Functions

Akonadi::ContactsFilterProxyModel Class Reference

A proxy model for ContactsTreeModel models. More...

#include <contactsfilterproxymodel.h>

Inherits QSortFilterProxyModel.

List of all members.

Public Slots

void setFilterString (const QString &filter)

Public Member Functions

 ContactsFilterProxyModel (QObject *parent=0)
 ~ContactsFilterProxyModel ()

Detailed Description

A proxy model for ContactsTreeModel models.

This class provides a filter proxy model for a ContactsTreeModel. The list of shown contacts or contact groups can be limited by settings a filter pattern. Only contacts or contact groups that contain this pattern as part of their data will be listed.

Example:

 Akonadi::ContactsTreeModel *model = new Akonadi::ContactsTreeModel( ... );

 Akonadi::ContactsFilterProxyModel *filter = new Akonadi::ContactsFilterProxyModel;
 filter->setSourceModel( model );

 Akonadi::EntityTreeView *view = new Akonadi::EntityTreeView;
 view->setModel( filter );

 QLineEdit *filterEdit = new QLineEdit;
 connect( filterEdit, SIGNAL( textChanged( const QString& ) ),
          filter, SLOT( setFilterString( const QString& ) ) );
Author:
Tobias Koenig <tokoe@kde.org>
Since:
4.5

Definition at line 60 of file contactsfilterproxymodel.h.


Constructor & Destructor Documentation

ContactsFilterProxyModel::ContactsFilterProxyModel ( QObject *  parent = 0  )  [explicit]

Creates a new contacts filter proxy model.

Parameters:
parent The parent object.

Definition at line 41 of file contactsfilterproxymodel.cpp.

ContactsFilterProxyModel::~ContactsFilterProxyModel (  ) 

Destroys the contacts filter proxy model.

Definition at line 49 of file contactsfilterproxymodel.cpp.


Member Function Documentation

void ContactsFilterProxyModel::setFilterString ( const QString &  filter  )  [slot]

Sets the filter that is used to filter for matching contacts and contact groups.

Definition at line 54 of file contactsfilterproxymodel.cpp.


The documentation for this class was generated from the following files:
  • contactsfilterproxymodel.h
  • contactsfilterproxymodel.cpp

akonadi/contact

Skip menu "akonadi/contact"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.1
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