diff --git a/src/widget/form/loadhistorydialog.cpp b/src/widget/form/loadhistorydialog.cpp index c785fb4c3..f97a766f4 100644 --- a/src/widget/form/loadhistorydialog.cpp +++ b/src/widget/form/loadhistorydialog.cpp @@ -24,6 +24,7 @@ #include "src/persistence/profile.h" #include #include +#include LoadHistoryDialog::LoadHistoryDialog(const ToxPk& friendPk, QWidget* parent) : QDialog(parent) @@ -61,11 +62,12 @@ void LoadHistoryDialog::highlightDates(int year, int month) QList counts = history->getChatHistoryCounts(this->friendPk, monthStart, monthEnd); - QTextCharFormat bold; - bold.setFontWeight(QFont::Bold); + QTextCharFormat format; + format.setFontWeight(QFont::Bold); QCalendarWidget* calendar = ui->fromDate; for (History::DateMessages p : counts) { - calendar->setDateTextFormat(monthStart.addDays(p.offsetDays), bold); + format.setToolTip(tr("%1 messages").arg(p.count)); + calendar->setDateTextFormat(monthStart.addDays(p.offsetDays), format); } }