Commit a48d1294 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add modify menu + add tooltip

parent ab88b08d
Pipeline #99858 passed with stage
in 13 minutes and 33 seconds
......@@ -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.addAction(i18n("Send now"), this, &SendLaterWidget::slotSendNow);
......@@ -157,9 +159,14 @@ void SendLaterWidget::createOrUpdateItem(MessageComposer::SendLaterInfo *info, S
item->setText(MessageId, QString::number(info->itemId()));
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());
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