Update date display on Overview page when font is changed in Preferences dialog

This commit is contained in:
Seeker4 2019-07-02 08:25:47 -07:00
parent a464c5c2ca
commit e0c70bf082
3 changed files with 11 additions and 0 deletions

View File

@ -1313,6 +1313,7 @@ void MainWindow::on_action_Preferences_triggered()
}
if (overview) {
overview->ResetFont();
overview->RebuildGraphs(true);
}

View File

@ -144,6 +144,13 @@ Overview::~Overview()
delete ui;
}
void Overview::ResetFont()
{
QFont font = QApplication::font();
font.setPointSizeF(font.pointSizeF()*1.3F);
dateLabel->setFont(font);
}
void Overview::RebuildGraphs(bool reset)
{
qint64 minx, maxx;

View File

@ -46,6 +46,9 @@ class Overview : public QWidget
//! \brief Recalculates Overview chart info
void ReloadGraphs();
//! \brief Resets font in date display
void ResetFont();
//! \brief Recalculates Overview chart info, but keeps the date set
void ResetGraphs();