mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Fix font selection
.. should update when saved not restarted.
This commit is contained in:
@@ -182,11 +182,6 @@ MainWindow::MainWindow(const QDir &home)
|
||||
appsettings->setValue(GC_FONT_CHARTLABELS_SIZE, app.labelFont);
|
||||
appsettings->setValue(GC_FONT_CALENDAR_SIZE, app.calendarFont);
|
||||
|
||||
// set the default fontsize
|
||||
QFont font;
|
||||
font.setPointSize(app.defaultFont);
|
||||
QApplication::setFont(font);
|
||||
|
||||
} else {
|
||||
|
||||
QRect appsize = geom.toRect();
|
||||
@@ -1863,6 +1858,12 @@ MainWindow::configChanged()
|
||||
tabbar->setPalette(tabbarPalette);
|
||||
#endif
|
||||
|
||||
// set the default fontsize
|
||||
QFont font;
|
||||
font.fromString(appsettings->value(NULL, GC_FONT_DEFAULT, QFont().toString()).toString());
|
||||
font.setPointSize(appsettings->value(NULL, GC_FONT_DEFAULT_SIZE, 10).toInt());
|
||||
QApplication::setFont(font); // set default font
|
||||
|
||||
head->updateGeometry();
|
||||
repaint();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user