Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later

#include "common/common.h"

Check warning on line 5 in src/app/main.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: "common/common.h" not found.

Check warning on line 5 in src/app/main.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: "common/common.h" not found.
#include "common/settings/settings.h"

Check warning on line 6 in src/app/main.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: "common/settings/settings.h" not found.

Check warning on line 6 in src/app/main.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: "common/settings/settings.h" not found.
#include "common/util/utils.h"

Check warning on line 7 in src/app/main.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: "common/util/utils.h" not found.

Check warning on line 7 in src/app/main.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: "common/util/utils.h" not found.

#include <framework/framework.h>

Check warning on line 9 in src/app/main.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <framework/framework.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 9 in src/app/main.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <framework/framework.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <framework/lifecycle/pluginsetting.h>

Check warning on line 10 in src/app/main.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <framework/lifecycle/pluginsetting.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 10 in src/app/main.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <framework/lifecycle/pluginsetting.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

#include <DApplication>

Expand Down Expand Up @@ -103,10 +104,12 @@
int main(int argc, char *argv[])
{
// some platform opengl drive with wrong,so use OpenGLES instead.
if (QSysInfo::currentCpuArchitecture().contains("arm")) {
QSurfaceFormat format;
format.setRenderableType(QSurfaceFormat::OpenGLES);
format.setDefaultFormat(format);
if(utils::isWayland()) {
if (QSysInfo::currentCpuArchitecture().contains("arm")) {
QSurfaceFormat format;
format.setRenderableType(QSurfaceFormat::OpenGLES);
format.setDefaultFormat(format);
}
}

QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
Expand Down
Loading