mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix documentation format of QgsCustomDropHandler
This commit is contained in:
parent
8ad6acd33d
commit
65a19c7a78
@ -16,14 +16,14 @@ Abstract base class that may be implemented to handle new types of data to be dr
|
||||
|
||||
Implementations have three approaches they can use to handle drops.
|
||||
|
||||
# The simplest approach is to implement :py:func:`~handeFileDrop` when they need to handle
|
||||
- The simplest approach is to implement :py:func:`~handleFileDrop` when they need to handle
|
||||
dropped files (i.e. with mime type "text/uri-list").
|
||||
# Reimplement :py:func:`~handleCustomUriDrop` when they want to handle dropped custom
|
||||
- Reimplement :py:func:`~handleCustomUriDrop` when they want to handle dropped custom
|
||||
:py:class:`QgsMimeDataUtils`.Uri entries, for instance handling dropping custom entries
|
||||
from the browser tree (with mime type "application/x-vnd.qgis.qgis.uri"). In
|
||||
this case the implementation's :py:func:`~customUriProviderKey` must match the uri
|
||||
entry's providerKey.
|
||||
# Reimplement :py:func:`~handleMimeData` to directly handle dropped QMimeData.
|
||||
- Reimplement :py:func:`~handleMimeData` to directly handle dropped QMimeData.
|
||||
Subclasses should take care when overriding this method. When a drop event
|
||||
occurs, Qt will lock the source application of the drag for the duration
|
||||
of the drop event handling via :py:func:`~handleMimeData` (e.g. dragging files from
|
||||
|
@ -27,14 +27,14 @@ class QgsMapCanvas;
|
||||
*
|
||||
* Implementations have three approaches they can use to handle drops.
|
||||
*
|
||||
* # The simplest approach is to implement handeFileDrop() when they need to handle
|
||||
* - The simplest approach is to implement handleFileDrop() when they need to handle
|
||||
* dropped files (i.e. with mime type "text/uri-list").
|
||||
* # Reimplement handleCustomUriDrop() when they want to handle dropped custom
|
||||
* - Reimplement handleCustomUriDrop() when they want to handle dropped custom
|
||||
* QgsMimeDataUtils::Uri entries, for instance handling dropping custom entries
|
||||
* from the browser tree (with mime type "application/x-vnd.qgis.qgis.uri"). In
|
||||
* this case the implementation's customUriProviderKey() must match the uri
|
||||
* entry's providerKey.
|
||||
* # Reimplement handleMimeData() to directly handle dropped QMimeData.
|
||||
* - Reimplement handleMimeData() to directly handle dropped QMimeData.
|
||||
* Subclasses should take care when overriding this method. When a drop event
|
||||
* occurs, Qt will lock the source application of the drag for the duration
|
||||
* of the drop event handling via handleMimeData() (e.g. dragging files from
|
||||
|
Loading…
x
Reference in New Issue
Block a user