qt: Migrate to Qt6. (#6418)

This commit is contained in:
Steveice10
2023-05-05 03:10:34 -07:00
committed by GitHub
parent 70335a7f4d
commit 2273df4d70
32 changed files with 299 additions and 464 deletions

View File

@ -40,8 +40,9 @@ void SurfacePicture::mousePressEvent(QMouseEvent* event) {
}
if (surface_widget) {
surface_widget->Pick(event->x() * pixmap.width() / width(),
event->y() * pixmap.height() / height());
const auto pos = event->position().toPoint();
surface_widget->Pick(pos.x() * pixmap.width() / width(),
pos.y() * pixmap.height() / height());
}
}