[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kmail
From: Leo Franchi <lfranchi () kde ! org>
Date: 2010-05-13 19:09:53
Message-ID: 20100513190953.5FC43AC8B4 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1126341 by lfranchi:
first part of fix for unselectable sent-mail folder
M +5 -1 kmcomposewin.cpp
--- trunk/KDE/kdepim/kmail/kmcomposewin.cpp #1126340:1126341
@@ -81,6 +81,7 @@
// LIBKDEPIM includes
#include <libkdepim/recentaddresses.h>
+#include <libkdepim/kdescendantsproxymodel_p.h>
// KDEPIMLIBS includes
#include <akonadi/collectioncombobox.h>
@@ -238,7 +239,10 @@
mDictionaryCombo = new DictionaryComboBox( mHeadersArea );
mDictionaryCombo->setToolTip( i18n( "Select the dictionary to use when \
spell-checking this message" ) );
- mFcc = new Akonadi::CollectionComboBox( KMKernel::self()->entityTreeModel(), \
mHeadersArea ); + KDescendantsProxyModel *proxyModel = new KDescendantsProxyModel( \
this ); + proxyModel->setDisplayAncestorData( true );
+ proxyModel->setSourceModel( kmkernel->entityTreeModel() );
+ mFcc = new Akonadi::CollectionComboBox( proxyModel, mHeadersArea );
mFcc->setMimeTypeFilter( QStringList()<<FolderCollectionMonitor::mimetype() );
mFcc->setAccessRightsFilter( Akonadi::Collection::CanCreateItem );
mFcc->setToolTip( i18n( "Select the sent-mail folder where a copy of this message \
will be saved" ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic