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
4426d4a2
Commit
4426d4a2
authored
Nov 18, 2021
by
Laurent Montel
😁
Browse files
Allow to show original message
parent
395fa922
Pipeline
#98765
passed with stage
in 13 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
agents/followupreminderagent/followupreminderinfowidget.cpp
View file @
4426d4a2
...
@@ -177,6 +177,7 @@ void FollowUpReminderInfoWidget::slotCustomContextMenuRequested(const QPoint &po
...
@@ -177,6 +177,7 @@ void FollowUpReminderInfoWidget::slotCustomContextMenuRequested(const QPoint &po
if
(
nbElementSelected
>
0
)
{
if
(
nbElementSelected
>
0
)
{
QMenu
menu
(
this
);
QMenu
menu
(
this
);
QAction
*
showMessage
=
nullptr
;
QAction
*
showMessage
=
nullptr
;
QAction
*
showOriginalMessage
=
nullptr
;
FollowUpReminderInfoItem
*
mailItem
=
nullptr
;
FollowUpReminderInfoItem
*
mailItem
=
nullptr
;
if
((
nbElementSelected
==
1
))
{
if
((
nbElementSelected
==
1
))
{
mailItem
=
static_cast
<
FollowUpReminderInfoItem
*>
(
listItems
.
at
(
0
));
mailItem
=
static_cast
<
FollowUpReminderInfoItem
*>
(
listItems
.
at
(
0
));
...
@@ -184,6 +185,8 @@ void FollowUpReminderInfoWidget::slotCustomContextMenuRequested(const QPoint &po
...
@@ -184,6 +185,8 @@ void FollowUpReminderInfoWidget::slotCustomContextMenuRequested(const QPoint &po
showMessage
=
menu
.
addAction
(
i18n
(
"Show Message"
));
showMessage
=
menu
.
addAction
(
i18n
(
"Show Message"
));
menu
.
addSeparator
();
menu
.
addSeparator
();
}
}
showOriginalMessage
=
menu
.
addAction
(
i18n
(
"Show Original Message"
));
menu
.
addSeparator
();
}
}
QAction
*
deleteItem
=
menu
.
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-delete"
)),
i18n
(
"Delete"
));
QAction
*
deleteItem
=
menu
.
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-delete"
)),
i18n
(
"Delete"
));
QAction
*
result
=
menu
.
exec
(
QCursor
::
pos
());
QAction
*
result
=
menu
.
exec
(
QCursor
::
pos
());
...
@@ -192,6 +195,8 @@ void FollowUpReminderInfoWidget::slotCustomContextMenuRequested(const QPoint &po
...
@@ -192,6 +195,8 @@ void FollowUpReminderInfoWidget::slotCustomContextMenuRequested(const QPoint &po
openShowMessage
(
mailItem
->
info
()
->
answerMessageItemId
());
openShowMessage
(
mailItem
->
info
()
->
answerMessageItemId
());
}
else
if
(
result
==
deleteItem
)
{
}
else
if
(
result
==
deleteItem
)
{
deleteItems
(
listItems
);
deleteItems
(
listItems
);
}
else
if
(
result
==
showOriginalMessage
)
{
openShowMessage
(
mailItem
->
info
()
->
originalMessageItemId
());
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
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