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

Fix typo

parent 64e57059
......@@ -19,15 +19,15 @@
#include "../changecaseplugineditorinterface.h"
#include <QTest>
changecasePluginEditorInterfaceTest::changecasePluginEditorInterfaceTest(QObject *parent)
ChangeCasePluginEditorInterfaceTest::ChangeCasePluginEditorInterfaceTest(QObject *parent)
: QObject(parent)
{
}
changecasePluginEditorInterfaceTest::~changecasePluginEditorInterfaceTest()
ChangeCasePluginEditorInterfaceTest::~ChangeCasePluginEditorInterfaceTest()
{
}
QTEST_MAIN(changecasePluginEditorInterfaceTest)
QTEST_MAIN(ChangeCasePluginEditorInterfaceTest)
......@@ -15,17 +15,17 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef changecasePLUGINEDITORINTERFACETEST_H
#define changecasePLUGINEDITORINTERFACETEST_H
#ifndef ChangeCasePLUGINEDITORINTERFACETEST_H
#define ChangeCasePLUGINEDITORINTERFACETEST_H
#include <QObject>
class changecasePluginEditorInterfaceTest : public QObject
class ChangeCasePluginEditorInterfaceTest : public QObject
{
Q_OBJECT
public:
explicit changecasePluginEditorInterfaceTest(QObject *parent = Q_NULLPTR);
~changecasePluginEditorInterfaceTest();
explicit ChangeCasePluginEditorInterfaceTest(QObject *parent = Q_NULLPTR);
~ChangeCasePluginEditorInterfaceTest();
};
#endif
......@@ -20,21 +20,21 @@
#include <KActionCollection>
#include <QTest>
changecasePluginEditorTest::changecasePluginEditorTest(QObject *parent)
ChangeCasePluginEditorTest::ChangeCasePluginEditorTest(QObject *parent)
: QObject(parent)
{
}
changecasePluginEditorTest::~changecasePluginEditorTest()
ChangeCasePluginEditorTest::~ChangeCasePluginEditorTest()
{
}
void changecasePluginEditorTest::shouldHaveDefaultValue()
void ChangeCasePluginEditorTest::shouldHaveDefaultValue()
{
changecasePluginEditor plugin;
ChangeCasePluginEditor plugin;
QVERIFY(plugin.createInterface(new KActionCollection(this)));
}
QTEST_MAIN(changecasePluginEditorTest)
QTEST_MAIN(ChangeCasePluginEditorTest)
......@@ -15,17 +15,17 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef changecasePLUGINEDITORTEST_H
#define changecasePLUGINEDITORTEST_H
#ifndef ChangeCasePLUGINEDITORTEST_H
#define ChangeCasePLUGINEDITORTEST_H
#include <QObject>
class changecasePluginEditorTest : public QObject
class ChangeCasePluginEditorTest : public QObject
{
Q_OBJECT
public:
explicit changecasePluginEditorTest(QObject *parent = Q_NULLPTR);
~changecasePluginEditorTest();
explicit ChangeCasePluginEditorTest(QObject *parent = Q_NULLPTR);
~ChangeCasePluginEditorTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
......
......@@ -20,22 +20,22 @@
#include <KLocalizedString>
#include <kpluginfactory.h>
K_PLUGIN_FACTORY_WITH_JSON(changecasePluginEditorFactory, "kmail_changecaseeditorplugin.json", registerPlugin<changecasePluginEditor>();)
K_PLUGIN_FACTORY_WITH_JSON(ChangeCasePluginEditorFactory, "kmail_changecaseeditorplugin.json", registerPlugin<ChangeCasePluginEditor>();)
changecasePluginEditor::changecasePluginEditor(QObject *parent, const QList<QVariant> &)
ChangeCasePluginEditor::ChangeCasePluginEditor(QObject *parent, const QList<QVariant> &)
: MessageComposer::PluginEditor(parent)
{
}
changecasePluginEditor::~changecasePluginEditor()
ChangeCasePluginEditor::~ChangeCasePluginEditor()
{
}
MessageComposer::PluginEditorInterface *changecasePluginEditor::createInterface(KActionCollection *ac, QObject *parent)
MessageComposer::PluginEditorInterface *ChangeCasePluginEditor::createInterface(KActionCollection *ac, QObject *parent)
{
changecasePluginEditorInterface *interface = new changecasePluginEditorInterface(parent);
ChangeCasePluginEditorInterface *interface = new ChangeCasePluginEditorInterface(parent);
interface->createAction(ac);
return interface;
}
......
......@@ -15,20 +15,20 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef CHANGECASEPLUGINEDITOR_H
#define CHANGECASEPLUGINEDITOR_H
#ifndef ChangeCasePLUGINEDITOR_H
#define ChangeCasePLUGINEDITOR_H
#include <messagecomposer/plugineditor.h>
#include <messagecomposer/plugineditorinterface.h>
#include <QVariant>
class changecasePluginEditor : public MessageComposer::PluginEditor
class ChangeCasePluginEditor : public MessageComposer::PluginEditor
{
Q_OBJECT
public:
explicit changecasePluginEditor(QObject *parent = Q_NULLPTR, const QList<QVariant> & = QList<QVariant>());
~changecasePluginEditor();
explicit ChangeCasePluginEditor(QObject *parent = Q_NULLPTR, const QList<QVariant> & = QList<QVariant>());
~ChangeCasePluginEditor();
MessageComposer::PluginEditorInterface *createInterface(KActionCollection *ac, QObject *parent = Q_NULLPTR) Q_DECL_OVERRIDE;
};
......
......@@ -21,32 +21,32 @@
#include <KActionCollection>
#include <QAction>
changecasePluginEditorInterface::changecasePluginEditorInterface(QObject *parent)
ChangeCasePluginEditorInterface::ChangeCasePluginEditorInterface(QObject *parent)
: MessageComposer::PluginEditorInterface(parent)
{
}
changecasePluginEditorInterface::~changecasePluginEditorInterface()
ChangeCasePluginEditorInterface::~ChangeCasePluginEditorInterface()
{
}
void changecasePluginEditorInterface::createAction(KActionCollection *ac)
void ChangeCasePluginEditorInterface::createAction(KActionCollection *ac)
{
QAction *action = new QAction(i18n("Insert Special Character..."), this);
ac->addAction(QStringLiteral("insert_special_character"), action);
connect(action, &QAction::triggered, this, &changecasePluginEditorInterface::slotActivated);
connect(action, &QAction::triggered, this, &ChangeCasePluginEditorInterface::slotActivated);
MessageComposer::ActionType type(action, MessageComposer::ActionType::Edit);
setActionType(type);
}
void changecasePluginEditorInterface::slotActivated()
void ChangeCasePluginEditorInterface::slotActivated()
{
Q_EMIT emitPluginActivated(this);
}
void changecasePluginEditorInterface::exec()
void ChangeCasePluginEditorInterface::exec()
{
}
......@@ -15,18 +15,18 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef CHANGECASEPLUGINEDITORINTERFACE_H
#define CHANGECASEPLUGINEDITORINTERFACE_H
#ifndef ChangeCasePLUGINEDITORINTERFACE_H
#define ChangeCasePLUGINEDITORINTERFACE_H
#include <messagecomposer/plugineditorinterface.h>
#include <QPointer>
class changecasePluginEditorInterface : public MessageComposer::PluginEditorInterface
class ChangeCasePluginEditorInterface : public MessageComposer::PluginEditorInterface
{
Q_OBJECT
public:
explicit changecasePluginEditorInterface(QObject *parent = Q_NULLPTR);
~changecasePluginEditorInterface();
explicit ChangeCasePluginEditorInterface(QObject *parent = Q_NULLPTR);
~ChangeCasePluginEditorInterface();
void createAction(KActionCollection *ac) Q_DECL_OVERRIDE;
void exec() Q_DECL_OVERRIDE;
......
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