Commit 5ff14c06 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

run git clang-format

parent 96f1ef65
......@@ -4,16 +4,16 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "mboxmainwindow.h"
#include <KAboutData>
#include <QApplication>
#include "mboxmainwindow.h"
#include <KLocalizedString>
#include "mboximporter-version.h"
#include <KCrash>
#include <KLocalizedString>
#include <QCommandLineParser>
#include <QFileDialog>
#include <QIcon>
#include <QCommandLineParser>
#include "mboximporter-version.h"
int main(int argc, char *argv[])
{
......
......@@ -11,12 +11,12 @@
#include <KMessageBox>
#include <QListWidgetItem>
#include <QApplication>
#include <QListWidgetItem>
MBoxImporterInfoGui::MBoxImporterInfoGui(MBoxImportWidget *parent)
: MailImporter::FilterInfoGui(),
mParent(parent)
: MailImporter::FilterInfoGui()
, mParent(parent)
{
}
......@@ -45,13 +45,13 @@ void MBoxImporterInfoGui::setCurrent(const QString &current)
qApp->processEvents();
}
void MBoxImporterInfoGui::setCurrent(int percent)
void MBoxImporterInfoGui::setCurrent(int percent)
{
mParent->mailWidget()->setCurrent(percent);
qApp->processEvents(); // Be careful - back & finish buttons disabled, so only user event that can happen is cancel/close button
}
void MBoxImporterInfoGui::setOverall(int percent)
void MBoxImporterInfoGui::setOverall(int percent)
{
mParent->mailWidget()->setOverall(percent);
}
......@@ -88,4 +88,3 @@ QWidget *MBoxImporterInfoGui::parent() const
{
return mParent;
}
......@@ -33,4 +33,3 @@ private:
};
#endif /* MBOXIMPORTERINFOGUI_H */
......@@ -6,13 +6,13 @@
#include "mboximportkernel.h"
#include <AkonadiCore/session.h>
#include <KIdentityManagement/kidentitymanagement/identitymanager.h>
#include <KSharedConfig>
#include <MailCommon/FolderCollectionMonitor>
#include <AkonadiCore/session.h>
#include <entitytreemodel.h>
#include <entitymimetypefiltermodel.h>
#include <changerecorder.h>
#include <KSharedConfig>
#include <entitymimetypefiltermodel.h>
#include <entitytreemodel.h>
MBoxImporterKernel::MBoxImporterKernel(QObject *parent)
: QObject(parent)
......
......@@ -45,10 +45,10 @@ public:
void expunge(Akonadi::Collection::Id col, bool sync) override;
private:
KIdentityManagement::IdentityManager *mIdentityManager= nullptr;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor= nullptr;
Akonadi::EntityTreeModel *mEntityTreeModel= nullptr;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel= nullptr;
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor = nullptr;
Akonadi::EntityTreeModel *mEntityTreeModel = nullptr;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel = nullptr;
};
#endif
......@@ -7,9 +7,9 @@
#include "mboximportwidget.h"
#include "ui_mboximportwidget.h"
MBoxImportWidget::MBoxImportWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::MBoxImportWidget)
MBoxImportWidget::MBoxImportWidget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::MBoxImportWidget)
{
ui->setupUi(this);
connect(ui->importMails, &QAbstractButton::clicked, this, &MBoxImportWidget::importMailsClicked);
......@@ -40,4 +40,3 @@ void MBoxImportWidget::setImportButtonEnabled(bool enabled)
{
ui->importMails->setEnabled(enabled);
}
......@@ -5,9 +5,9 @@
*/
#include "mboxmainwindow.h"
#include "mboximportwidget.h"
#include "mboximportkernel.h"
#include "mboximporterinfogui.h"
#include "mboximportkernel.h"
#include "mboximportwidget.h"
#include <MailImporter/FilterMBox>
#include <MailImporter/ImportMailsWidget>
......@@ -21,15 +21,15 @@
#include <QVBoxLayout>
MBoxMainWindow::MBoxMainWindow(const QString &filename, QWidget *parent)
: QDialog(parent),
mFileName(filename)
: QDialog(parent)
, mFileName(filename)
{
setWindowTitle(i18nc("@title:window", "Import mbox file"));
auto *mainLayout = new QVBoxLayout(this);
auto *kernel = new MBoxImporterKernel(this);
CommonKernel->registerKernelIf(kernel); //register KernelIf early, it is used by the Filter classes
CommonKernel->registerSettingsIf(kernel); //SettingsIf is used in FolderTreeWidget
CommonKernel->registerKernelIf(kernel); // register KernelIf early, it is used by the Filter classes
CommonKernel->registerSettingsIf(kernel); // SettingsIf is used in FolderTreeWidget
mImportWidget = new MBoxImportWidget(this);
mainLayout->addWidget(mImportWidget);
......@@ -65,4 +65,3 @@ void MBoxMainWindow::slotImportMBox()
mbox.importMails({mFileName});
info->setStatusMessage(i18n("Import finished"));
}
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