Fix documentation format of QgsCustomDropHandler

This commit is contained in:
Nyall Dawson 2023-11-07 07:43:23 +10:00
parent 8ad6acd33d
commit 65a19c7a78
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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