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

List:       kde-commits
Subject:    playground/pim/mailody
From:       Tom Albers <tomalbers () kde ! nl>
Date:       2008-02-05 21:52:43
Message-ID: 1202248363.206364.21962.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 771421 by toma:

Remove the threading, and use the normal model instead. The threader has issues, it \
requires strigi for the threading.


 M  +1 -1      akonadi_resource/imaplibresource.cpp  
 M  +2 -4      src/headerwidget.cpp  
 M  +0 -1      src/headerwidget.h  


--- trunk/playground/pim/mailody/akonadi_resource/imaplibresource.cpp #771420:771421
@@ -201,7 +201,7 @@
 void ImaplibResource::retrieveItems( const Akonadi::Collection & col, const \
QStringList &parts )  {
     kDebug(  ) << col.remoteId();
-    m_imap->checkMail( col.remoteId() );
+    m_imap->getMailBox( col.remoteId() );
 }
 
 void ImaplibResource::slotMessagesInFolder( Imaplib*, const QString& mb, int amount \
                )
--- trunk/playground/pim/mailody/src/headerwidget.cpp #771420:771421
@@ -79,9 +79,7 @@
 
     // messageview
     m_messageModel = new Akonadi::MessageModel( this );
-    m_messageProxyModel = new Akonadi::MessageThreaderProxyModel( this );
-    m_messageProxyModel->setSourceModel( m_messageModel );
-    m_headerView->setModel( m_messageProxyModel ); // model for headerview.
+    m_headerView->setModel( m_messageModel ); // model for headerview.
 
     connect( m_headerView, SIGNAL( clicked( QModelIndex ) ), SLOT( itemActivated( \
QModelIndex ) ) );  
@@ -119,7 +117,7 @@
 
 void HeaderWidget::itemActivated( const QModelIndex & index )
 {
-    DataReference ref = m_messageModel->referenceForIndex( \
m_messageProxyModel->mapToSource( index ) ); +    DataReference ref = \
m_messageModel->referenceForIndex(  index );  
     if ( ref.isNull() )
         return;
--- trunk/playground/pim/mailody/src/headerwidget.h #771420:771421
@@ -87,7 +87,6 @@
 
 private:
     Akonadi::MessageModel* m_messageModel;
-    Akonadi::MessageThreaderProxyModel* m_messageProxyModel;
     HeaderModel* m_headerModel;
     HeaderProxy* m_headerProxy;
     HeaderThreading* m_headerThreading;


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

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