From c54341458ecd9a95048a74ac8aa656b1c61426e3 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 22 May 2021 20:55:21 +0400 Subject: [PATCH] make drag&drop pixmap smaller --- src/ui/liveview/LiveViewWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/liveview/LiveViewWindow.cpp b/src/ui/liveview/LiveViewWindow.cpp index b4547de4..48119dcb 100644 --- a/src/ui/liveview/LiveViewWindow.cpp +++ b/src/ui/liveview/LiveViewWindow.cpp @@ -1000,7 +1000,8 @@ void LiveViewWindow::mouseMoveEvent(QMouseEvent *event) mimeData->setText(QString("test")); drag->setMimeData(mimeData); if (cw->stream()) - drag->setPixmap(QPixmap::fromImage(cw->stream()->currentFrame())); + drag->setPixmap(QPixmap::fromImage( + cw->stream()->currentFrame()).scaled(cw->width() / 2,cw->height() / 2, Qt::KeepAspectRatio)); Qt::DropAction dropAction = drag->exec(Qt::CopyAction | Qt::MoveAction); }