Commit 51b70ecb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to enable/disable status bar widget

parent 97fba454
Pipeline #50316 passed with stage
in 26 minutes and 23 seconds
......@@ -117,6 +117,13 @@ QList<QAction *> KMailPluginEditorManagerInterface::actionsType(MessageComposer:
return mActionHash.value(type);
}
void KMailPluginEditorManagerInterface::setStatusBarWidgetEnabled(bool status)
{
for (QWidget *w : qAsConst(mStatusBarWidget)) {
w->setEnabled(status);
}
}
QList<QWidget *> KMailPluginEditorManagerInterface::statusBarWidgetList()
{
if (mStatusBarWidget.isEmpty() && !mListPluginInterface.isEmpty()) {
......
......@@ -47,6 +47,7 @@ public:
Q_REQUIRED_RESULT bool processProcessKeyEvent(QKeyEvent *event);
void setStatusBarWidgetEnabled(bool status);
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