Commit fcb67119 authored by Laurent Montel's avatar Laurent Montel 😁

Show information

parent 39fed271
......@@ -75,9 +75,15 @@ FollowUpReminderInfoWidget::~FollowUpReminderInfoWidget()
{
}
void FollowUpReminderInfoWidget::setInfo(const QList<FollowUpReminder::FollowUpReminderInfo *> &info)
void FollowUpReminderInfoWidget::setInfo(const QList<FollowUpReminder::FollowUpReminderInfo *> &infoList)
{
//TODO
Q_FOREACH(FollowUpReminder::FollowUpReminderInfo *info, infoList) {
FollowUpReminderInfoItem *item = new FollowUpReminderInfoItem(mTreeWidget);
item->setText(To, info->to());
item->setText(MessageId, info->messageId());
//TODO customize it.
item->setText(Date, info->followUpReminderDate().toString());
}
}
void FollowUpReminderInfoWidget::customContextMenuRequested(const QPoint &pos)
......@@ -92,7 +98,9 @@ void FollowUpReminderInfoWidget::customContextMenuRequested(const QPoint &pos)
void FollowUpReminderInfoWidget::slotRemoveItem()
{
//TODO
if (mTreeWidget->currentItem()) {
delete mTreeWidget->currentItem();
}
}
void FollowUpReminderInfoWidget::restoreTreeWidgetHeader(const QByteArray &data)
......
......@@ -50,7 +50,7 @@ public:
void restoreTreeWidgetHeader(const QByteArray &data);
void saveTreeWidgetHeader(KConfigGroup &group);
void setInfo(const QList<FollowUpReminder::FollowUpReminderInfo *> &info);
void setInfo(const QList<FollowUpReminder::FollowUpReminderInfo *> &infoList);
private slots:
void customContextMenuRequested(const QPoint &pos);
void slotRemoveItem();
......
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