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
a48d1294
Commit
a48d1294
authored
Nov 22, 2021
by
Laurent Montel
😁
Browse files
Add modify menu + add tooltip
parent
ab88b08d
Pipeline
#99858
passed with stage
in 13 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
agents/sendlateragent/sendlaterconfigurewidget.cpp
View file @
a48d1294
...
...
@@ -89,6 +89,8 @@ void SendLaterWidget::slotCustomContextMenuRequested(const QPoint &)
if
(
!
listItems
.
isEmpty
())
{
QMenu
menu
(
this
);
if
(
listItems
.
count
()
==
1
)
{
menu
.
addAction
(
mWidget
->
modifyItem
->
text
(),
this
,
&
SendLaterWidget
::
slotModifyItem
);
menu
.
addSeparator
();
menu
.
addAction
(
i18n
(
"Send now"
),
this
,
&
SendLaterWidget
::
slotSendNow
);
}
menu
.
addSeparator
();
...
...
@@ -157,9 +159,14 @@ void SendLaterWidget::createOrUpdateItem(MessageComposer::SendLaterInfo *info, S
#ifdef DEBUG_MESSAGE_ID
item
->
setText
(
MessageId
,
QString
::
number
(
info
->
itemId
()));
#endif
item
->
setText
(
SendAround
,
info
->
dateTime
().
toString
());
item
->
setText
(
Subject
,
info
->
subject
());
const
QString
date
{
info
->
dateTime
().
toString
()};
item
->
setText
(
SendAround
,
date
);
item
->
setToolTip
(
SendAround
,
date
);
const
QString
subject
{
info
->
subject
()};
item
->
setText
(
Subject
,
subject
);
item
->
setToolTip
(
Subject
,
subject
);
item
->
setText
(
To
,
info
->
to
());
item
->
setToolTip
(
To
,
info
->
to
());
item
->
setInfo
(
info
);
mWidget
->
treeWidget
->
setShowDefaultText
(
false
);
}
...
...
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