Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e5054ca2 authored by Laurent Montel's avatar Laurent Montel 😁

Clean up

parent 6df9ac72
......@@ -23,26 +23,10 @@
#include <QDir>
ArchiveMailInfo::ArchiveMailInfo()
: mLastDateSaved(QDate())
, mArchiveAge(1)
, mArchiveType(MailCommon::BackupJob::Zip)
, mArchiveUnit(ArchiveMailInfo::ArchiveDays)
, mSaveCollectionId(-1)
, mMaximumArchiveCount(0)
, mSaveSubCollection(false)
, mIsEnabled(true)
{
}
ArchiveMailInfo::ArchiveMailInfo(const KConfigGroup &config)
: mLastDateSaved(QDate())
, mArchiveAge(1)
, mArchiveType(MailCommon::BackupJob::Zip)
, mArchiveUnit(ArchiveMailInfo::ArchiveDays)
, mSaveCollectionId(-1)
, mMaximumArchiveCount(0)
, mSaveSubCollection(false)
, mIsEnabled(true)
{
readConfig(config);
}
......
......@@ -83,14 +83,14 @@ public:
private:
QString dirArchive(bool &dirExit) const;
QDate mLastDateSaved;
int mArchiveAge;
MailCommon::BackupJob::ArchiveType mArchiveType;
ArchiveUnit mArchiveUnit;
Akonadi::Collection::Id mSaveCollectionId;
int mArchiveAge = 1;
MailCommon::BackupJob::ArchiveType mArchiveType = MailCommon::BackupJob::Zip;
ArchiveUnit mArchiveUnit = ArchiveMailInfo::ArchiveDays;
Akonadi::Collection::Id mSaveCollectionId = -1;
QUrl mPath;
int mMaximumArchiveCount;
bool mSaveSubCollection;
bool mIsEnabled;
int mMaximumArchiveCount = 0;
bool mSaveSubCollection = false;
bool mIsEnabled = true;
};
#endif // ARCHIVEMAILINFO_H
......@@ -65,7 +65,6 @@ private:
bool verifyExistingArchive(ArchiveMailInfo *info) const;
void updateDiffDate(ArchiveMailItem *item, ArchiveMailInfo *info);
private:
void slotRemoveItem();
void slotModifyItem();
void slotAddItem();
......@@ -74,7 +73,7 @@ private:
void customContextMenuRequested(const QPoint &);
void slotArchiveNow();
void slotItemChanged(QTreeWidgetItem *item, int);
bool mChanged;
bool mChanged = false;
Ui::ArchiveMailWidget *mWidget = nullptr;
};
......
......@@ -39,7 +39,6 @@ using namespace FollowUpReminder;
FollowUpReminderManager::FollowUpReminderManager(QObject *parent)
: QObject(parent)
, mInitialize(false)
{
mConfig = KSharedConfig::openConfig();
}
......
......@@ -51,7 +51,7 @@ private:
KSharedConfig::Ptr mConfig;
QList<FollowUpReminder::FollowUpReminderInfo *> mFollowUpReminderInfoList;
QPointer<FollowUpReminderNoAnswerDialog> mNoAnswerDialog;
bool mInitialize;
bool mInitialize = false;
};
#endif // FOLLOWUPREMINDERMANAGER_H
......@@ -49,13 +49,11 @@ public:
bool canHandle(const Akonadi::Collection &col) const override;
protected:
void init(const Akonadi::Collection &);
protected Q_SLOTS:
void slotFetchDone(KJob *job);
private:
void init(const Akonadi::Collection &);
/*
* Detects mailing-list related stuff
*/
......
......@@ -47,10 +47,8 @@ public:
void save(Akonadi::Collection &col) override;
bool canHandle(const Akonadi::Collection &collection) const override;
protected:
void init();
private:
void init();
CollectionQuotaWidget *mQuotaWidget = nullptr;
};
......
......@@ -47,14 +47,13 @@ public:
void load(const Akonadi::Collection &col) override;
void save(Akonadi::Collection &col) override;
private Q_SLOTS:
private:
void slotChangeIcon(const QString &icon);
void slotAggregationCheckboxChanged();
void slotThemeCheckboxChanged();
void slotSelectFolderAggregation();
void slotSelectFolderTheme();
private:
void init(const Akonadi::Collection &);
QSharedPointer<MailCommon::FolderSettings> mFolderCollection;
QCheckBox *mIconsCheckBox = nullptr;
......
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