[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepimlibs/akonadi
From:       Stephen Kelly <steveire () gmail ! com>
Date:       2008-10-19 22:24:23
Message-ID: 1224455063.827901.5861.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 873666 by skelly:

Make indexForId a const method.



 M  +2 -2      collectionmodel_p.cpp  
 M  +1 -1      collectionmodel_p.h  


--- trunk/KDE/kdepimlibs/akonadi/collectionmodel_p.cpp #873665:873666
@@ -172,9 +172,9 @@
   }
 }
 
-QModelIndex CollectionModelPrivate::indexForId( Collection::Id id, int column )
+QModelIndex CollectionModelPrivate::indexForId( Collection::Id id, int column ) const
 {
-  Q_Q( CollectionModel );
+  Q_Q( const CollectionModel );
   if ( !collections.contains( id ) )
     return QModelIndex();
 
--- trunk/KDE/kdepimlibs/akonadi/collectionmodel_p.h #873665:873666
@@ -71,7 +71,7 @@
     void dropResult( KJob* );
     void collectionsChanged( const Akonadi::Collection::List &cols );
 
-    QModelIndex indexForId( Collection::Id id, int column = 0 );
+    QModelIndex indexForId( Collection::Id id, int column = 0 ) const;
     bool removeRowFromModel( int row, const QModelIndex & parent = QModelIndex() );
     bool supportsContentType( const QModelIndex &index, const QStringList &contentTypes );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic