mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
Common actions allow for shortcuts to be registered for actions which do not yet exist, or which are not associated with a single global QAction object attached to at the application level. For example, code editor actions which will be created as children of individual code editor widgets, but which should have shortcuts available for user configuration via the shortcuts manager dialog.
15 lines
569 B
Python
15 lines
569 B
Python
# The following has been generated automatically from src/gui/qgsshortcutsmanager.h
|
|
# monkey patching scoped based enum
|
|
QgsShortcutsManager.CommonAction.CodeToggleComment.__doc__ = "Toggle code comments"
|
|
QgsShortcutsManager.CommonAction.CodeReformat.__doc__ = "Reformat code"
|
|
QgsShortcutsManager.CommonAction.__doc__ = """Contains common actions which are used across a variety of classes.
|
|
|
|
.. versionadded:: 4.0
|
|
|
|
* ``CodeToggleComment``: Toggle code comments
|
|
* ``CodeReformat``: Reformat code
|
|
|
|
"""
|
|
# --
|
|
QgsShortcutsManager.CommonAction.baseClass = QgsShortcutsManager
|