@@ -168,7 +168,11 @@ struct DockOverlayCrossPrivate
168168 QColor borderColor = iconColor (CDockOverlayCross::FrameColor);
169169 QColor backgroundColor = iconColor (CDockOverlayCross::WindowBackgroundColor);
170170
171+ #if QT_VERSION >= 0x050600
171172 double DevicePixelRatio = _this->window ()->devicePixelRatioF ();
173+ #else
174+ double DevicePixelRatio = _this->window ()->devicePixelRatio ();
175+ #endif
172176 QSizeF PixmapSize = size * DevicePixelRatio;
173177 QPixmap pm (PixmapSize.toSize ());
174178 pm.fill (QColor (0 , 0 , 0 , 0 ));
@@ -577,8 +581,11 @@ void CDockOverlayCross::setupOverlayCross(CDockOverlay::eMode Mode)
577581 areaWidgets.insert (BottomDockWidgetArea, d->createDropIndicatorWidget (BottomDockWidgetArea, Mode));
578582 areaWidgets.insert (LeftDockWidgetArea, d->createDropIndicatorWidget (LeftDockWidgetArea, Mode));
579583 areaWidgets.insert (CenterDockWidgetArea, d->createDropIndicatorWidget (CenterDockWidgetArea, Mode));
584+ #if QT_VERSION >= 0x050600
580585 d->LastDevicePixelRatio = devicePixelRatioF ();
581-
586+ #else
587+ d->LastDevicePixelRatio = devicePixelRatio ();
588+ #endif
582589 setAreaWidgets (areaWidgets);
583590 d->UpdateRequired = false ;
584591}
@@ -596,7 +603,11 @@ void CDockOverlayCross::updateOverlayIcons()
596603 {
597604 d->updateDropIndicatorIcon (Widget);
598605 }
606+ #if QT_VESION >= 0x050600
599607 d->LastDevicePixelRatio = devicePixelRatioF ();
608+ #else
609+ d->LastDevicePixelRatio = devicePixelRatio ();
610+ #endif
600611}
601612
602613
0 commit comments