Commit abe7bfe0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Install some plugins in insert menu etc.

parent 5bd4a6c1
Pipeline #52350 passed with stage
in 54 minutes and 42 seconds
......@@ -76,7 +76,7 @@ set(LIBKLEO_LIB_VERSION "5.16.40")
set(AKONADI_LIB_VERSION "5.16.40")
set(INCIDENCEEDITOR_LIB_VERSION "5.16.40")
set(KTNEF_LIB_VERSION "5.16.40")
set(MESSAGELIB_LIB_VERSION "5.16.45")
set(MESSAGELIB_LIB_VERSION "5.16.49")
set(AKONADICALENDAR_LIB_VERSION "5.16.40")
set(CALENDAR_UTILS_VERSION "5.16.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.16.40")
......
......@@ -24,7 +24,7 @@ void InsertEmailPluginEditorInterfaceTest::shouldHaveDefaultValue()
interface.createAction(new KActionCollection(this));
MessageComposer::PluginActionType type = interface.actionType();
QVERIFY(type.action());
QCOMPARE(type.type(), MessageComposer::PluginActionType::Edit);
QCOMPARE(type.type(), MessageComposer::PluginActionType::Insert);
}
QTEST_MAIN(InsertEmailPluginEditorInterfaceTest)
......@@ -25,7 +25,7 @@ void InsertEmailPluginEditorInterface::createAction(KActionCollection *ac)
QAction *action = new QAction(i18n("Insert Email..."), this);
ac->addAction(QStringLiteral("insert_email"), action);
connect(action, &QAction::triggered, this, &InsertEmailPluginEditorInterface::slotActivated);
MessageComposer::PluginActionType type(action, MessageComposer::PluginActionType::Edit);
MessageComposer::PluginActionType type(action, MessageComposer::PluginActionType::Insert);
setActionType(type);
}
......
......@@ -24,7 +24,7 @@ void InsertSpecialCharacterPluginEditorInterfaceTest::shouldHaveDefaultValue()
interface.createAction(new KActionCollection(this));
MessageComposer::PluginActionType type = interface.actionType();
QVERIFY(type.action());
QCOMPARE(type.type(), MessageComposer::PluginActionType::Edit);
QCOMPARE(type.type(), MessageComposer::PluginActionType::Insert);
}
QTEST_MAIN(InsertSpecialCharacterPluginEditorInterfaceTest)
......@@ -24,7 +24,7 @@ void InsertSpecialCharacterPluginEditorInterface::createAction(KActionCollection
QAction *action = new QAction(i18n("Insert Special Character..."), this);
ac->addAction(QStringLiteral("insert_special_character"), action);
connect(action, &QAction::triggered, this, &InsertSpecialCharacterPluginEditorInterface::slotActivated);
MessageComposer::PluginActionType type(action, MessageComposer::PluginActionType::Edit);
MessageComposer::PluginActionType type(action, MessageComposer::PluginActionType::Insert);
setActionType(type);
}
......
......@@ -24,7 +24,7 @@ void NonBreakingSpacePluginEditorInterfaceTest::shouldHaveDefaultValue()
interface.createAction(new KActionCollection(this));
MessageComposer::PluginActionType type = interface.actionType();
QVERIFY(type.action());
QCOMPARE(type.type(), MessageComposer::PluginActionType::Edit);
QCOMPARE(type.type(), MessageComposer::PluginActionType::Insert);
}
QTEST_MAIN(NonBreakingSpacePluginEditorInterfaceTest)
......@@ -25,7 +25,7 @@ void NonBreakingSpacePluginEditorInterface::createAction(KActionCollection *ac)
ac->addAction(QStringLiteral("insert_non_breaking_space"), action);
ac->setDefaultShortcut(action, Qt::CTRL | Qt::Key_Space);
connect(action, &QAction::triggered, this, &NonBreakingSpacePluginEditorInterface::slotActivated);
MessageComposer::PluginActionType type(action, MessageComposer::PluginActionType::Edit);
MessageComposer::PluginActionType type(action, MessageComposer::PluginActionType::Insert);
setActionType(type);
}
......
......@@ -41,7 +41,7 @@ void QuickTextPluginEditorInterface::createAction(KActionCollection *ac)
action->setMenu(quickTextMenu->menu());
ac->addAction(QStringLiteral("insert_variables"), action);
connect(action, &QAction::triggered, this, &QuickTextPluginEditorInterface::slotActivated);
MessageComposer::PluginActionType type(action, MessageComposer::PluginActionType::Edit);
MessageComposer::PluginActionType type(action, MessageComposer::PluginActionType::Insert);
setActionType(type);
QPushButton *button = new QPushButton(i18n("Variables"));
button->setFocusPolicy(Qt::NoFocus);
......
......@@ -25,7 +25,7 @@ void ZoomTextPluginEditorInterfaceTest::shouldHaveDefaultValue()
interface.createAction(ac);
MessageComposer::PluginActionType type = interface.actionType();
QVERIFY(type.action());
QCOMPARE(type.type(), MessageComposer::PluginActionType::Edit);
QCOMPARE(type.type(), MessageComposer::PluginActionType::View);
QVERIFY(ac->action(QStringLiteral("zoom_menu")));
QVERIFY(ac->action(QStringLiteral("zoom_in")));
QVERIFY(ac->action(QStringLiteral("zoom_out")));
......
......@@ -40,7 +40,7 @@ void ZoomTextPluginEditorInterface::createAction(KActionCollection *ac)
ac->addAction(QStringLiteral("zoom_reset"), zoomResetAction);
zoomMenu->addAction(zoomResetAction);
MessageComposer::PluginActionType type(zoomMenu, MessageComposer::PluginActionType::Edit);
MessageComposer::PluginActionType type(zoomMenu, MessageComposer::PluginActionType::View);
setActionType(type);
mZoomLabelWidget = new ZoomLabel;
connect(this, &ZoomTextPluginEditorInterface::zoomFactorChanged, mZoomLabelWidget, &ZoomLabel::setZoomLabel);
......
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