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
385aa3ba
Commit
385aa3ba
authored
Feb 10, 2021
by
Laurent Montel
😁
Browse files
Fix enable/disable statusbarwidget
parent
51b70ecb
Pipeline
#50391
passed with stage
in 27 minutes and 23 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
385aa3ba
...
...
@@ -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.4
3
"
)
set
(
MESSAGELIB_LIB_VERSION
"5.16.4
5
"
)
set
(
LIBKLEO_LIB_VERSION
"5.16.40"
)
set
(
PIMCOMMON_LIB_VERSION
"5.16.41"
)
set
(
LIBKDEPIM_LIB_VERSION
"5.16.40"
)
...
...
src/editor/plugininterface/kmailplugineditormanagerinterface.cpp
View file @
385aa3ba
...
...
@@ -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
));
}
}
}
}
...
...
src/editor/plugininterface/kmailplugineditormanagerinterface.h
View file @
385aa3ba
...
...
@@ -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
);
...
...
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