mirror of https://github.com/KDE/kasts.git
Re-enable glyph cache workaround for android
This commit is contained in:
parent
2fb1419002
commit
ffbc064908
|
@ -70,6 +70,10 @@ int main(int argc, char *argv[])
|
|||
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
#endif
|
||||
|
||||
if (QSysInfo::currentCpuArchitecture().contains(QStringLiteral("arm")) && qEnvironmentVariableIsEmpty("QT_ENABLE_GLYPH_CACHE_WORKAROUND")) {
|
||||
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "1");
|
||||
}
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
QGuiApplication app(argc, argv);
|
||||
qInstallMessageHandler(myMessageHandler);
|
||||
|
@ -80,10 +84,6 @@ int main(int argc, char *argv[])
|
|||
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
|
||||
QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));
|
||||
}
|
||||
|
||||
if (QSysInfo::currentCpuArchitecture().contains(QStringLiteral("arm")) && qEnvironmentVariableIsEmpty("QT_ENABLE_GLYPH_CACHE_WORKAROUND")) {
|
||||
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "1");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WINDOWS
|
||||
|
|
Loading…
Reference in New Issue