mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Reorder Application attributes before creating QCoreApplication to comply of framework expectations
This commit is contained in:
parent
9117d07bac
commit
1c36c2855e
1 changed files with 4 additions and 4 deletions
|
|
@ -42,14 +42,14 @@ AppController::AppController (int &argc, char *argv[]) {
|
|||
Q_ASSERT(!mApp);
|
||||
// Disable QML cache. Avoid malformed cache.
|
||||
qputenv("QML_DISABLE_DISK_CACHE", "true");
|
||||
|
||||
QGuiApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true);
|
||||
// Useful to share camera on Fullscreen (other context).
|
||||
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||
|
||||
mApp = new App(argc, argv);
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
QGuiApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true);
|
||||
|
||||
// Useful to share camera on Fullscreen (other context).
|
||||
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// App creation.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue