Skip to content

Commit

Permalink
fix: incorrect icon size when using HiDPI
Browse files Browse the repository at this point in the history
解决高分屏(1.5+缩放)时,DCI 图标大小异常的问题。

Issue: linuxdeepin/developer-center#6137
Log:
  • Loading branch information
BLumia committed Nov 22, 2023
1 parent 6f5188b commit 41515a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ int main(int argc, char* argv[])
qputenv("D_POPUP_MODE", "embed");

QGuiApplication app(argc, argv);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QCoreApplication::setOrganizationName("deepin");
QCoreApplication::setApplicationName("dde-launchpad");
QCoreApplication::setApplicationVersion(QT_STRINGIFY(DDE_LAUNCHPAD_VERSION) + QStringLiteral("-technical-preview"));
Expand Down

0 comments on commit 41515a6

Please sign in to comment.