Skip to content

Commit

Permalink
fix: wrong product icon size in DAboutDialog
Browse files Browse the repository at this point in the history
when compiled with Qt6, product icon size is set to windowHandle().baseSize()
which is not the same as compiled with Qt5 (fixed size 128x128)

Log: use 128x128 pixmap in DAboutDialog::setProductIcon
  • Loading branch information
zty199 authored and kegechen committed Jul 1, 2024
1 parent bed8dbf commit f7e5883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/daboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ void DAboutDialog::setProductIcon(const QIcon &icon)
#else
winId(); // TODO: wait for checking
auto window = windowHandle();
d->logoLabel->setPixmap(icon.pixmap(window->baseSize(), window->screen()->devicePixelRatio()));
d->logoLabel->setPixmap(icon.pixmap(QSize(128, 128), window->screen()->devicePixelRatio()));
#endif
}

Expand Down

0 comments on commit f7e5883

Please sign in to comment.