translations and cleanup

This commit is contained in:
2025-04-01 18:10:49 +03:00
parent 7275892b04
commit a73bf1fc53
6 changed files with 35 additions and 70 deletions

View File

@@ -32,8 +32,7 @@ void ImageRedactor::wheelEvent(QWheelEvent *event) {
void ImageRedactor::mousePressEvent(QMouseEvent *event)
{
// Pan the image
if (event->button() == Qt::LeftButton)
{
if (event->button() == Qt::LeftButton) {
setDragMode(QGraphicsView::ScrollHandDrag);
}
}
@@ -41,8 +40,7 @@ void ImageRedactor::mousePressEvent(QMouseEvent *event)
void ImageRedactor::mouseReleaseEvent(QMouseEvent *event)
{
// Reset the drag mode
if (event->button() == Qt::LeftButton)
{
if (event->button() == Qt::LeftButton) {
setDragMode(QGraphicsView::NoDrag);
}
}