Commit 848f2bc8 authored by Laurent Montel's avatar Laurent Montel 😁

Cache QStringList

parent 8c1d2e35
......@@ -37,6 +37,16 @@ ManageShowCollectionProperties::ManageShowCollectionProperties(KMMainWidget *mai
: QObject(parent),
mMainWidget(mainWidget)
{
mPages = QStringList() << QLatin1String( "MailCommon::CollectionGeneralPage" )
<< QLatin1String( "KMail::CollectionViewPage" )
<< QLatin1String( "Akonadi::CachePolicyPage" )
<< QLatin1String( "KMail::CollectionTemplatesPage" )
<< QLatin1String( "MailCommon::CollectionExpiryPage" )
<< QLatin1String( "PimCommon::CollectionAclPage" )
<< QLatin1String( "KMail::CollectionMailingListPage" )
<< QLatin1String( "KMail::CollectionQuotaPage" )
<< QLatin1String( "KMail::CollectionShortcutPage" )
<< QLatin1String( "KMail::CollectionMaintenancePage" );
}
......@@ -181,18 +191,7 @@ void ManageShowCollectionProperties::slotCollectionPropertiesFinished( KJob *job
const Akonadi::Collection collection = fetch->collections().first();
const QStringList pages = QStringList() << QLatin1String( "MailCommon::CollectionGeneralPage" )
<< QLatin1String( "KMail::CollectionViewPage" )
<< QLatin1String( "Akonadi::CachePolicyPage" )
<< QLatin1String( "KMail::CollectionTemplatesPage" )
<< QLatin1String( "MailCommon::CollectionExpiryPage" )
<< QLatin1String( "PimCommon::CollectionAclPage" )
<< QLatin1String( "KMail::CollectionMailingListPage" )
<< QLatin1String( "KMail::CollectionQuotaPage" )
<< QLatin1String( "KMail::CollectionShortcutPage" )
<< QLatin1String( "KMail::CollectionMaintenancePage" );
QPointer<Akonadi::CollectionPropertiesDialog> dlg = new Akonadi::CollectionPropertiesDialog( collection, pages, mMainWidget );
QPointer<Akonadi::CollectionPropertiesDialog> dlg = new Akonadi::CollectionPropertiesDialog( collection, mPages, mMainWidget );
dlg->setCaption( i18nc( "@title:window", "Properties of Folder %1", collection.name() ) );
......
......@@ -53,6 +53,7 @@ private:
private:
QHash<Akonadi::Collection::Id, QPointer<Akonadi::CollectionPropertiesDialog> > mHashDialogBox;
QStringList mPages;
KMMainWidget *mMainWidget;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment