Fix compilation with Qt < 6.6

This commit is contained in:
Martchus 2024-02-22 16:57:02 +01:00
parent 8372dfbcaa
commit dee94844be
1 changed files with 2 additions and 0 deletions

View File

@ -639,11 +639,13 @@ bool TrayWidget::event(QEvent *event)
m_menu->icon()->updateStatusIconAndText();
}
break;
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
case QEvent::DevicePixelRatioChange:
setLabelPixmaps();
setTrafficPixmaps(true);
IconManager::instance().update();
break;
#endif
default:;
}
return res;