Stop modifying application-wide QFont object
This commit is contained in:
parent
7e9dc6e4f2
commit
f76ddd841c
1 changed files with 0 additions and 5 deletions
|
|
@ -16,7 +16,6 @@
|
||||||
#include <QtCore/QVector>
|
#include <QtCore/QVector>
|
||||||
#include <QtGui/QFontInfo>
|
#include <QtGui/QFontInfo>
|
||||||
#include <QtGui/QFontDatabase>
|
#include <QtGui/QFontDatabase>
|
||||||
#include <QtWidgets/QApplication>
|
|
||||||
|
|
||||||
void style_InitFontsResource() {
|
void style_InitFontsResource() {
|
||||||
#ifdef Q_OS_MAC // Use resources from the .app bundle on macOS.
|
#ifdef Q_OS_MAC // Use resources from the .app bundle on macOS.
|
||||||
|
|
@ -399,10 +398,6 @@ void StartFonts() {
|
||||||
QFont::insertSubstitutions(name, list);
|
QFont::insertSubstitutions(name, list);
|
||||||
#endif // Q_OS_MAC
|
#endif // Q_OS_MAC
|
||||||
#endif // !LIB_UI_USE_PACKAGED_FONTS
|
#endif // !LIB_UI_USE_PACKAGED_FONTS
|
||||||
|
|
||||||
auto appFont = QApplication::font();
|
|
||||||
appFont.setStyleStrategy(QFont::PreferQuality);
|
|
||||||
QApplication::setFont(appFont);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DestroyFonts() {
|
void DestroyFonts() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue