diff options
author | Yuhang Zhao <2546789017@qq.com> | 2023-02-20 17:06:46 +0800 |
---|---|---|
committer | Yuhang Zhao <2546789017@qq.com> | 2023-02-22 22:27:35 +0800 |
commit | f7fd5eaf95c964956b2b353784105c89950ffff2 (patch) | |
tree | 999559256f061a87dc4e3d0957f21d11cd0a15d8 /examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp | |
parent | b4b4c8140112e3e327ca7bfc1263b948001b93f8 (diff) |
Fix qtbase build when all deprecated code are disabled
Adjust the callers to use the non-deprecated APIs.
Pick-to: 6.5
Change-Id: I8e96f25684a2d613bc400a8626dc9e3af2bb8dcf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp')
-rw-r--r-- | examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp b/examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp index 619e0c1200..a883e7c58a 100644 --- a/examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp +++ b/examples/widgets/draganddrop/fridgemagnets/dragwidget.cpp @@ -161,7 +161,7 @@ void DragWidget::mousePressEvent(QMouseEvent *event) //! [16] QDrag *drag = new QDrag(this); drag->setMimeData(mimeData); - drag->setPixmap(child->pixmap(Qt::ReturnByValue)); + drag->setPixmap(child->pixmap()); drag->setHotSpot(hotSpot); child->hide(); |