~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-security

« back to all changes in this revision

Viewing changes to libkdepim/contactstreemodel.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-22 18:24:40 UTC
  • mfrom: (0.2.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20101222182440-ju0oewt2kl096yii
Tags: 4:4.4.9-0ubuntu1
* New upstream release
* Readd kubuntu_02_kalarm_kstatusnotifieritem.diff inadvertently left out of
  debian/patches/series

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <klocale.h>
29
29
 
30
30
using namespace Akonadi;
 
31
using namespace AkonadiFuture;
31
32
 
32
33
class ContactsTreeModel::Private
33
34
{
62
63
  return d->mColumns;
63
64
}
64
65
 
65
 
QVariant ContactsTreeModel::entityData( const Item &item, int column, int role ) const
 
66
QVariant ContactsTreeModel::entityData( const Akonadi::Item &item, int column, int role ) const
66
67
{
67
68
  if ( item.mimeType() == KABC::Addressee::mimeType() ) {
68
69
    if ( !item.hasPayload<KABC::Addressee>() ) {
175
176
  return EntityTreeModel::entityData( item, column, role );
176
177
}
177
178
 
178
 
QVariant ContactsTreeModel::entityData( const Collection &collection, int column, int role ) const
 
179
QVariant ContactsTreeModel::entityData( const Akonadi::Collection &collection, int column, int role ) const
179
180
{
180
181
  if ( role == Qt::DisplayRole ) {
181
182
    switch ( column ) {
214
215
            return i18nc( "@title:column, address books overview", "Address Books" );
215
216
            break;
216
217
        }
217
 
      } else if ( headerGroup == EntityTreeModel::ItemListHeaders ) {
 
218
      } else if ( headerGroup == Akonadi::EntityTreeModel::ItemListHeaders ) {
218
219
        if ( section < 0 || section >= d->mColumns.count() )
219
220
          return QVariant();
220
221