Use operator-> for tray icon biggest size

This commit is contained in:
Ilya Fedin 2021-01-10 16:27:12 +04:00 committed by John Preston
parent ea9813825d
commit f1e0b36f61

View file

@ -257,7 +257,7 @@ QIcon TrayIconGen(int counter, bool muted) {
std::less<>(), std::less<>(),
&QSize::width); &QSize::width);
if ((*biggestSize).width() > firstAttemptSize.width()) { if (biggestSize->width() > firstAttemptSize.width()) {
currentImageBack = systemIcon currentImageBack = systemIcon
.pixmap(*biggestSize) .pixmap(*biggestSize)
.toImage(); .toImage();
@ -388,7 +388,7 @@ std::unique_ptr<QTemporaryFile> TrayIconFile(
std::less<>(), std::less<>(),
&QSize::width); &QSize::width);
if ((*biggestSize).width() > firstAttemptSize.width()) { if (biggestSize->width() > firstAttemptSize.width()) {
scalePixmap(icon.pixmap(*biggestSize)).save(ret.get()); scalePixmap(icon.pixmap(*biggestSize)).save(ret.get());
} else { } else {
scalePixmap(firstAttempt).save(ret.get()); scalePixmap(firstAttempt).save(ret.get());