Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
51b70ecb
Commit
51b70ecb
authored
Feb 09, 2021
by
Laurent Montel
😁
Browse files
Allow to enable/disable status bar widget
parent
97fba454
Pipeline
#50316
passed with stage
in 26 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/editor/plugininterface/kmailplugineditormanagerinterface.cpp
View file @
51b70ecb
...
...
@@ -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
())
{
...
...
src/editor/plugininterface/kmailplugineditormanagerinterface.h
View file @
51b70ecb
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment