summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qdrag.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-17 17:19:24 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-27 12:21:29 +0200
commitdccf28b7c344822b7459635099ebe3abdf5fd107 (patch)
tree3acab7b16c02f87ace113cc2f0cc8d9598e219e4 /src/gui/kernel/qdrag.cpp
parent4ba25a092065a6422510a9f4afa4fbbabeda686c (diff)
Remove deprecated members from several QtGui classes
Those can be trivially removed as they have direct replacements, or are completely unused. The migration path for QCursor::bitmap and QCursor::mask is QBitmap *pb = c.bitmap(); // up to 5.15, warns in 5.15 QBitmap vb = c.bitmap(Qt::ReturnByValue); // from 5.15, works in 6 QBitmap b = c.bitmap(); // from 6.0 on Change-Id: I3b3acd1c7f09c4c8414e98b3ce11986f1ecd5eda Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/gui/kernel/qdrag.cpp')
-rw-r--r--src/gui/kernel/qdrag.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/gui/kernel/qdrag.cpp b/src/gui/kernel/qdrag.cpp
index 3712eace15..d6dfc6387c 100644
--- a/src/gui/kernel/qdrag.cpp
+++ b/src/gui/kernel/qdrag.cpp
@@ -287,36 +287,6 @@ Qt::DropAction QDrag::exec(Qt::DropActions supportedActions, Qt::DropAction defa
return d->executed_action;
}
-#if QT_DEPRECATED_SINCE(5, 13)
-/*!
- \obsolete
-
- \b{Note:} It is recommended to use exec() instead of this function.
-
- Starts the drag and drop operation and returns a value indicating the requested
- drop action when it is completed. The drop actions that the user can choose
- from are specified in \a request. Qt::CopyAction is always allowed.
-
- \b{Note:} Although the drag and drop operation can take some time, this function
- does not block the event loop. Other events are still delivered to the application
- while the operation is performed.
-
- \sa exec()
-*/
-Qt::DropAction QDrag::start(Qt::DropActions request)
-{
- Q_D(QDrag);
- if (!d->data) {
- qWarning("QDrag: No mimedata set before starting the drag");
- return d->executed_action;
- }
- d->supported_actions = request | Qt::CopyAction;
- d->default_action = Qt::IgnoreAction;
- d->executed_action = QDragManager::self()->drag(this);
- return d->executed_action;
-}
-#endif
-
/*!
Sets the drag \a cursor for the \a action. This allows you
to override the default native cursors. To revert to using the