more fixes after rebase
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -254,8 +254,8 @@ namespace AzToolsFramework
|
||||
QRect globalRect = m_editor->GetWidgetAndVisibleChildrenGlobalRect(dragRowWidget);
|
||||
|
||||
int top = mapFromGlobal(globalRect.topLeft()).y();
|
||||
int imageHeight = dragImage.height() / dragImage.devicePixelRatioF();
|
||||
int imageWidth = dragImage.width() / dragImage.devicePixelRatioF();
|
||||
int imageHeight = static_cast<int>(dragImage.height() / dragImage.devicePixelRatioF());
|
||||
int imageWidth = static_cast<int>(dragImage.width() / dragImage.devicePixelRatioF());
|
||||
QRect currRect = QRect(QPoint(LeftMargin + 1, top), QPoint(LeftMargin + 1 + imageWidth, top + imageHeight));
|
||||
|
||||
painter.setOpacity(alpha);
|
||||
|
||||
+1
-1
@@ -1867,7 +1867,7 @@ namespace AzToolsFramework
|
||||
}
|
||||
|
||||
const auto dpr = devicePixelRatioF();
|
||||
QPixmap dragImage(width * dpr, height * dpr);
|
||||
QPixmap dragImage(static_cast<int>(width * dpr), static_cast<int>(height * dpr));
|
||||
dragImage.setDevicePixelRatio(dpr);
|
||||
dragImage.fill(Qt::transparent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user