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

Activate regexeditorlineedit build

parent f8528a31
......@@ -75,7 +75,7 @@ set(AKONADICALENDAR_LIB_VERSION "5.5.40")
set(CALENDAR_UTILS_VERSION "5.5.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.5.40")
set(KIMAP_LIB_VERSION "5.5.40")
set(LIBKSIEVE_LIB_VERSION_LIB "5.5.42")
set(LIBKSIEVE_LIB_VERSION_LIB "5.5.43")
set(KMAILTRANSPORT_LIB_VERSION "5.5.40")
set(AKONADICONTACT_LIB_VERSION "5.5.40")
set(IMPORTWIZARD_LIB_VERSION "5.5.42")
......
include_directories(${CMAKE_CURRENT_BINARY_DIR})
#if(BUILD_TESTING)
# add_subdirectory(tests)
# add_subdirectory(autotests)
#endif()
set(regexpeditorlineeditplugin_SRCS
regexpeditorlineedit.cpp
)
kcoreaddons_add_plugin(regexpeditorlineeditplugin JSON regexepeditorlineedit.json SOURCES
${regexpeditorlineeditplugin_SRCS} INSTALL_NAMESPACE libksieve)
target_link_libraries(regexpeditorlineeditplugin
KF5::I18n KF5::KSieveUi
)
......@@ -21,11 +21,11 @@
#include "regexpeditorlineedit.h"
#include <kpluginfactory.h>
K_PLUGIN_FACTORY_WITH_JSON(RegexpEditorLineEditFactory, "regexpeditorlineedit.json", registerPlugin<RegexpEditorLineEdit>();)
K_PLUGIN_FACTORY_WITH_JSON(RegexpEditorLineEditFactory, "regexepeditorlineedit.json", registerPlugin<RegexpEditorLineEdit>();)
RegexpEditorLineEdit::RegexpEditorLineEdit(QWidget *parent)
: QWidget(parent)
RegexpEditorLineEdit::RegexpEditorLineEdit(QWidget *parent, const QList<QVariant> &)
: KSieveUi::AbstractRegexpEditorLineEdit(parent)
{
}
......@@ -35,4 +35,19 @@ RegexpEditorLineEdit::~RegexpEditorLineEdit()
}
void RegexpEditorLineEdit::switchToRegexpEditorLineEdit()
{
}
void RegexpEditorLineEdit::setCode(const QString &str)
{
//TODO
}
QString RegexpEditorLineEdit::code() const
{
//TODO
return {};
}
#include "regexpeditorlineedit.moc"
......@@ -27,8 +27,12 @@ class RegexpEditorLineEdit : public KSieveUi::AbstractRegexpEditorLineEdit
{
Q_OBJECT
public:
explicit RegexpEditorLineEdit(QWidget *parent = nullptr);
explicit RegexpEditorLineEdit(QWidget *parent = nullptr, const QList<QVariant> & = {});
~RegexpEditorLineEdit();
void switchToRegexpEditorLineEdit() Q_DECL_OVERRIDE;
void setCode(const QString &str) Q_DECL_OVERRIDE;
QString code() const Q_DECL_OVERRIDE;
};
#endif // REGEXPEDITORLINEEDIT_H
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