Fix compilation with Qt < 6.6
This commit is contained in:
parent
8372dfbcaa
commit
dee94844be
|
@ -639,11 +639,13 @@ bool TrayWidget::event(QEvent *event)
|
||||||
m_menu->icon()->updateStatusIconAndText();
|
m_menu->icon()->updateStatusIconAndText();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
|
||||||
case QEvent::DevicePixelRatioChange:
|
case QEvent::DevicePixelRatioChange:
|
||||||
setLabelPixmaps();
|
setLabelPixmaps();
|
||||||
setTrafficPixmaps(true);
|
setTrafficPixmaps(true);
|
||||||
IconManager::instance().update();
|
IconManager::instance().update();
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:;
|
default:;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in New Issue