Commit 2e6c209d authored by Laurent Montel's avatar Laurent Montel 😁

Rename class

parent 8017fa8a
cmake_minimum_required(VERSION 3.0)
set(PIM_VERSION "5.7.47")
set(PIM_VERSION "5.7.48")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -12,7 +12,7 @@ set(templateparser_LIB_SRCS
customtemplates.cpp
customtemplatesmenu.cpp
templatesconfiguration.cpp
templatesinsertcommand.cpp
templatesinsertcommandpushbutton.cpp
templatestextedit.cpp
templatestexteditor.cpp
templatewebengineview.cpp
......@@ -81,7 +81,7 @@ ecm_generate_headers(TemplateParser_CamelCase_HEADERS
TemplatesConfiguration
TemplatesTextEdit
TemplatesUtil
TemplatesInsertCommand
TemplatesInsertCommandPushButton
TemplateParserJob
TemplateParserExtractHtmlInfoResult
TemplateParserEmailAddressRequesterBase
......
......@@ -18,7 +18,7 @@
*/
#include "customtemplates.h"
#include "templateparser/templatesinsertcommand.h"
#include "templateparser/templatesinsertcommandpushbutton.h"
#include "customtemplates_kfg.h"
#include "globalsettings_templateparser.h"
#include "ui_customtemplates_base.h"
......@@ -61,7 +61,7 @@ CustomTemplates::CustomTemplates(const QList<KActionCollection *> &actionCollect
connect(mUi->mName, &KLineEdit::returnPressed, this, &CustomTemplates::slotAddClicked);
connect(mUi->mInsertCommand, QOverload<const QString &, int>::of(&TemplateParser::TemplatesInsertCommand::insertCommand), this, &CustomTemplates::slotInsertCommand);
connect(mUi->mInsertCommand, QOverload<const QString &, int>::of(&TemplateParser::TemplatesInsertCommandPushButton::insertCommand), this, &CustomTemplates::slotInsertCommand);
connect(mUi->mAdd, &QPushButton::clicked, this, &CustomTemplates::slotAddClicked);
connect(mUi->mRemove, &QPushButton::clicked, this, &CustomTemplates::slotRemoveClicked);
......
......@@ -60,7 +60,7 @@ TemplatesConfiguration::TemplatesConfiguration(QWidget *parent, const QString &n
connect(lineEdit_quote, &QLineEdit::textChanged,
this, &TemplatesConfiguration::slotTextChanged);
connect(mInsertCommand, QOverload<const QString &, int>::of(&TemplateParser::TemplatesInsertCommand::insertCommand),
connect(mInsertCommand, QOverload<const QString &, int>::of(&TemplateParser::TemplatesInsertCommandPushButton::insertCommand),
this, &TemplatesConfiguration::slotInsertCommand);
d->mHelpString
......
......@@ -24,12 +24,12 @@
class KActionMenu;
namespace TemplateParser {
class TEMPLATEPARSER_EXPORT TemplatesInsertCommand : public QPushButton
class TEMPLATEPARSER_EXPORT TemplatesInsertCommandPushButton : public QPushButton
{
Q_OBJECT
public:
explicit TemplatesInsertCommand(QWidget *parent, const QString &name = QString());
~TemplatesInsertCommand();
explicit TemplatesInsertCommandPushButton(QWidget *parent, const QString &name = QString());
~TemplatesInsertCommandPushButton();
public:
//TODO: apidox for all these enums
......@@ -106,7 +106,7 @@ public:
};
Q_SIGNALS:
void insertCommand(TemplatesInsertCommand::Command cmd);
void insertCommand(TemplatesInsertCommandPushButton::Command cmd);
void insertCommand(const QString &cmd, int adjustCursor = 0);
public Q_SLOTS:
......@@ -116,7 +116,7 @@ protected:
KActionMenu *mMenu = nullptr;
private:
void fillMenuFromActionMap(const QMap<QString, TemplatesInsertCommand::Command> &map, KActionMenu *menu);
void fillMenuFromActionMap(const QMap<QString, TemplatesInsertCommandPushButton::Command> &map, KActionMenu *menu);
};
}
......
......@@ -336,7 +336,7 @@
<widget class="KKeySequenceWidget" name="mKeySequenceWidget"/>
</item>
<item row="0" column="0">
<widget class="TemplateParser::TemplatesInsertCommand" name="mInsertCommand" native="true"/>
<widget class="TemplateParser::TemplatesInsertCommandPushButton" name="mInsertCommand" native="true"/>
</item>
</layout>
</item>
......@@ -370,9 +370,9 @@
<header>templatestextedit.h</header>
</customwidget>
<customwidget>
<class>TemplateParser::TemplatesInsertCommand</class>
<class>TemplateParser::TemplatesInsertCommandPushButton</class>
<extends>QWidget</extends>
<header>templatesinsertcommand.h</header>
<header>templatesinsertcommandpushbutton.h</header>
</customwidget>
<customwidget>
<class>TemplateParser::TemplateParserEmailAddressRequesterInterfaceWidget</class>
......
......@@ -289,7 +289,7 @@
<number>0</number>
</property>
<item>
<widget class="TemplateParser::TemplatesInsertCommand" name="mInsertCommand" native="true"/>
<widget class="TemplateParser::TemplatesInsertCommandPushButton" name="mInsertCommand" native="true"/>
</item>
<item>
<widget class="QLabel" name="textLabel1">
......@@ -338,9 +338,9 @@
<header>templatestextedit.h</header>
</customwidget>
<customwidget>
<class>TemplateParser::TemplatesInsertCommand</class>
<class>TemplateParser::TemplatesInsertCommandPushButton</class>
<extends>QWidget</extends>
<header>templatesinsertcommand.h</header>
<header>templatesinsertcommandpushbutton.h</header>
</customwidget>
</customwidgets>
<resources/>
......
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