Commit 385aa3ba authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix enable/disable statusbarwidget

parent 51b70ecb
Pipeline #50391 passed with stage
in 27 minutes and 23 seconds
......@@ -70,7 +70,7 @@ option(KDEPIM_RUN_AKONADI_TEST "Enable autotest based on Akonadi." TRUE)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED DBus Network Test Widgets WebEngine WebEngineWidgets)
set(LIBGRAVATAR_VERSION "5.16.40")
set(MAILCOMMON_LIB_VERSION "5.16.40")
set(MESSAGELIB_LIB_VERSION "5.16.43")
set(MESSAGELIB_LIB_VERSION "5.16.45")
set(LIBKLEO_LIB_VERSION "5.16.40")
set(PIMCOMMON_LIB_VERSION "5.16.41")
set(LIBKDEPIM_LIB_VERSION "5.16.40")
......
......@@ -117,10 +117,14 @@ QList<QAction *> KMailPluginEditorManagerInterface::actionsType(MessageComposer:
return mActionHash.value(type);
}
void KMailPluginEditorManagerInterface::setStatusBarWidgetEnabled(bool status)
void KMailPluginEditorManagerInterface::setStatusBarWidgetEnabled(MessageComposer::PluginEditorInterface::ApplyOnFieldType type)
{
for (QWidget *w : qAsConst(mStatusBarWidget)) {
w->setEnabled(status);
if (!mStatusBarWidget.isEmpty()) {
for (MessageComposer::PluginEditorInterface *interface : qAsConst(mListPluginInterface)) {
if (interface->applyOnFieldTypes() & type) {
interface->statusBarWidget()->setEnabled((interface->applyOnFieldTypes() & type));
}
}
}
}
......
......@@ -47,7 +47,7 @@ public:
Q_REQUIRED_RESULT bool processProcessKeyEvent(QKeyEvent *event);
void setStatusBarWidgetEnabled(bool status);
void setStatusBarWidgetEnabled(MessageComposer::PluginEditorInterface::ApplyOnFieldType type);
Q_SIGNALS:
void textSelectionChanged(bool hasSelection);
void message(const QString &str);
......
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