Skip to content

Commit bfee7b6

Browse files
deepin-ci-robot18202781743
authored andcommitted
sync: from linuxdeepin/dtkwidget
Synchronize source files from linuxdeepin/dtkwidget. Source-pull-request: linuxdeepin/dtkwidget#639
1 parent 3cd8c57 commit bfee7b6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/widgets/daboutdialog.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,7 @@ void DAboutDialog::setProductIcon(const QIcon &icon)
459459
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
460460
d->logoLabel->setPixmap(icon.pixmap(windowHandle(), QSize(128, 128)));
461461
#else
462-
winId(); // TODO: wait for checking
463-
auto window = windowHandle();
464-
d->logoLabel->setPixmap(icon.pixmap(QSize(128, 128), window->screen()->devicePixelRatio()));
462+
d->logoLabel->setPixmap(icon.pixmap(QSize(128, 128), devicePixelRatio()));
465463
#endif
466464
}
467465

0 commit comments

Comments
 (0)