Commit 04f595fe authored by Laurent Montel's avatar Laurent Montel 😁

Fix coding style

parent 3fbf2cce
......@@ -27,16 +27,15 @@ public:
PluginEditorInitPrivate()
: mIsEnabled(false)
{
}
bool mIsEnabled;
};
PluginEditorInit::PluginEditorInit(QObject *parent)
: QObject(parent),
d(new MessageComposer::PluginEditorInitPrivate)
: QObject(parent)
, d(new MessageComposer::PluginEditorInitPrivate)
{
}
PluginEditorInit::~PluginEditorInit()
......
......@@ -23,8 +23,7 @@
#include <QObject>
#include "messagecomposer_export.h"
namespace MessageComposer
{
namespace MessageComposer {
class PluginEditorInitPrivate;
class PluginEditorInitInterface;
......
......@@ -24,12 +24,10 @@ using namespace MessageComposer;
PluginEditorInitConfigureWidget::PluginEditorInitConfigureWidget(QWidget *parent)
: QWidget(parent)
{
}
PluginEditorInitConfigureWidget::~PluginEditorInitConfigureWidget()
{
}
QString PluginEditorInitConfigureWidget::helpAnchor() const
......
......@@ -23,8 +23,7 @@
#include "messagecomposer_export.h"
#include <QWidget>
namespace MessageComposer
{
namespace MessageComposer {
class MESSAGECOMPOSER_EXPORT PluginEditorInitConfigureWidget : public QWidget
{
Q_OBJECT
......
......@@ -25,20 +25,19 @@ class MessageComposer::PluginEditorInitInterfacePrivate
{
public:
PluginEditorInitInterfacePrivate()
: mParentWidget(nullptr),
mEditor(nullptr)
: mParentWidget(nullptr)
, mEditor(nullptr)
{
}
QWidget *mParentWidget;
KPIMTextEdit::RichTextComposer *mEditor;
};
PluginEditorInitInterface::PluginEditorInitInterface(QObject *parent)
: QObject(parent),
d(new MessageComposer::PluginEditorInitInterfacePrivate)
: QObject(parent)
, d(new MessageComposer::PluginEditorInitInterfacePrivate)
{
}
PluginEditorInitInterface::~PluginEditorInitInterface()
......
......@@ -23,13 +23,11 @@
#include <QObject>
#include "messagecomposer_export.h"
namespace KPIMTextEdit
{
namespace KPIMTextEdit {
class RichTextComposer;
}
namespace MessageComposer
{
namespace MessageComposer {
class PluginEditorInitInterfacePrivate;
class PluginEditorInitParams;
class MESSAGECOMPOSER_EXPORT PluginEditorInitInterface : public QObject
......@@ -47,7 +45,6 @@ public:
KPIMTextEdit::RichTextComposer *richTextEditor() const;
void setRichTextEditor(KPIMTextEdit::RichTextComposer *richTextEditor);
public Q_SLOTS:
virtual void reloadConfig();
......
......@@ -40,6 +40,7 @@ public:
{
delete pluginManager;
}
PluginEditorInitManager *pluginManager;
};
......@@ -47,11 +48,11 @@ class PluginEditorInitInfo
{
public:
PluginEditorInitInfo()
: plugin(nullptr),
isEnabled(true)
: plugin(nullptr)
, isEnabled(true)
{
}
QString metaDataFileNameBaseName;
QString metaDataFileName;
PimCommon::PluginUtilData pluginData;
......@@ -61,8 +62,7 @@ public:
Q_GLOBAL_STATIC(PluginEditorInitManagerInstancePrivate, sInstance)
namespace
{
namespace {
QString pluginVersion()
{
return QStringLiteral("1.0");
......@@ -77,6 +77,7 @@ public:
{
initializePlugins();
}
void loadPlugin(PluginEditorInitInfo *item);
QVector<PluginEditorInit *> pluginsList() const;
bool initializePlugins();
......@@ -107,7 +108,7 @@ QVector<PimCommon::PluginUtilData> PluginEditorInitManagerPrivate::pluginsDataLi
bool PluginEditorInitManagerPrivate::initializePlugins()
{
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("kmail"), [](const KPluginMetaData & md) {
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("kmail"), [](const KPluginMetaData &md) {
return md.serviceTypes().contains(QStringLiteral("KMailEditor/PluginEditorInit"));
});
......@@ -181,8 +182,8 @@ PluginEditorInit *PluginEditorInitManagerPrivate::pluginFromIdentifier(const QSt
}
PluginEditorInitManager::PluginEditorInitManager(QObject *parent)
: QObject(parent),
d(new MessageComposer::PluginEditorInitManagerPrivate(this))
: QObject(parent)
, d(new MessageComposer::PluginEditorInitManagerPrivate(this))
{
}
......
......@@ -23,8 +23,7 @@
#include <QObject>
#include "messagecomposer_export.h"
#include <PimCommon/PluginUtil>
namespace MessageComposer
{
namespace MessageComposer {
class PluginEditorInitManagerPrivate;
class PluginEditorInit;
class MESSAGECOMPOSER_EXPORT PluginEditorInitManager : public QObject
......
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