Move Windows font overrides away from translations

Determine which font to use with a dedicated function instead
This commit is contained in:
Alexander Babikov
2024-03-20 16:48:09 +05:00
parent 8e06b5449f
commit ae7d4454cb
27 changed files with 24 additions and 144 deletions

View File

@@ -1919,9 +1919,7 @@ MainWindow::changeEvent(QEvent *event)
{
#ifdef Q_OS_WINDOWS
if (event->type() == QEvent::LanguageChange) {
auto font_name = tr("FONT_NAME");
auto font_size = tr("FONT_SIZE");
QApplication::setFont(QFont(font_name, font_size.toInt()));
QApplication::setFont(QFont(ProgSettings::getFontName(lang_id), 9));
}
#endif
QWidget::changeEvent(event);