Commit f20a22d0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent e071cde4
Pipeline #37393 passed with stage
in 29 minutes and 18 seconds
......@@ -14,7 +14,7 @@ KOCheckableProxyModel::KOCheckableProxyModel(QObject *parent) : KCheckableProxyM
bool KOCheckableProxyModel::setData(const QModelIndex &index, const QVariant &value, int role)
{
Qt::CheckState newState = static_cast<Qt::CheckState>(value.toInt());
const Qt::CheckState newState = static_cast<Qt::CheckState>(value.toInt());
if (role == Qt::CheckStateRole && index.column() == 0) {
Q_EMIT aboutToToggle(newState);
}
......
......@@ -16,12 +16,12 @@
ManageShowCollectionProperties::ManageShowCollectionProperties(
AkonadiCollectionView *collectionView, QObject *parent)
: QObject(parent)
, mPages{ QStringLiteral("CalendarSupport::CollectionGeneralPage"),
QStringLiteral("Akonadi::CachePolicyPage"),
QStringLiteral("PimCommon::CollectionAclPage"),
QStringLiteral("Akonadi::CollectionMaintenancePage") }
, mCollectionView(collectionView)
{
mPages = QStringList() << QStringLiteral("CalendarSupport::CollectionGeneralPage")
<< QStringLiteral("Akonadi::CachePolicyPage")
<< QStringLiteral("PimCommon::CollectionAclPage")
<< QStringLiteral("Akonadi::CollectionMaintenancePage");
}
ManageShowCollectionProperties::~ManageShowCollectionProperties()
......
......@@ -29,7 +29,7 @@ private:
void slotCollectionPropertiesContinued(KJob *job);
void slotCollectionPropertiesFinished(KJob *job);
QHash<Akonadi::Collection::Id, QPointer<Akonadi::CollectionPropertiesDialog> > mHashDialogBox;
QStringList mPages;
const QStringList mPages;
AkonadiCollectionView *const mCollectionView;
};
......
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