mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-16 00:05:45 -04:00
Cleanup QgsUnitSelectionWidget docs
This commit is contained in:
parent
8f6b511b0b
commit
502ad84f83
@ -3,3 +3,7 @@ try:
|
||||
QgsMapUnitScaleWidget.__attribute_docs__ = {'mapUnitScaleChanged': 'Emitted when the settings in the widget are modified.\n\n:param scale: :py:class:`QgsMapUnitScale` reflecting new settings from the widget\n'}
|
||||
except NameError:
|
||||
pass
|
||||
try:
|
||||
QgsUnitSelectionWidget.__attribute_docs__ = {'changed': 'Emitted when the selected unit is changed, or the definition of the map unit scale is changed.\n'}
|
||||
except NameError:
|
||||
pass
|
||||
|
@ -131,8 +131,9 @@ class QgsUnitSelectionWidget : QWidget
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
A widget displaying a combobox allowing the user to choose between various display units,
|
||||
such as millimeters or map unit. If the user chooses map units, a button appears allowing
|
||||
adjustment of minimum and maximum scaling.
|
||||
such as millimeters or map units.
|
||||
|
||||
If the user chooses map units, a button appears allowing adjustment of minimum and maximum scaling.
|
||||
|
||||
.. seealso:: :py:class:`QgsMapUnitScaleWidget`
|
||||
|
||||
@ -233,7 +234,11 @@ Sets whether the widget can show the map scale button when the Map Units option
|
||||
%End
|
||||
|
||||
signals:
|
||||
|
||||
void changed();
|
||||
%Docstring
|
||||
Emitted when the selected unit is changed, or the definition of the map unit scale is changed.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
@ -3,3 +3,7 @@ try:
|
||||
QgsMapUnitScaleWidget.__attribute_docs__ = {'mapUnitScaleChanged': 'Emitted when the settings in the widget are modified.\n\n:param scale: :py:class:`QgsMapUnitScale` reflecting new settings from the widget\n'}
|
||||
except NameError:
|
||||
pass
|
||||
try:
|
||||
QgsUnitSelectionWidget.__attribute_docs__ = {'changed': 'Emitted when the selected unit is changed, or the definition of the map unit scale is changed.\n'}
|
||||
except NameError:
|
||||
pass
|
||||
|
@ -131,8 +131,9 @@ class QgsUnitSelectionWidget : QWidget
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
A widget displaying a combobox allowing the user to choose between various display units,
|
||||
such as millimeters or map unit. If the user chooses map units, a button appears allowing
|
||||
adjustment of minimum and maximum scaling.
|
||||
such as millimeters or map units.
|
||||
|
||||
If the user chooses map units, a button appears allowing adjustment of minimum and maximum scaling.
|
||||
|
||||
.. seealso:: :py:class:`QgsMapUnitScaleWidget`
|
||||
|
||||
@ -233,7 +234,11 @@ Sets whether the widget can show the map scale button when the Map Units option
|
||||
%End
|
||||
|
||||
signals:
|
||||
|
||||
void changed();
|
||||
%Docstring
|
||||
Emitted when the selected unit is changed, or the definition of the map unit scale is changed.
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
@ -155,8 +155,10 @@ class GUI_EXPORT QgsMapUnitScaleDialog : public QDialog
|
||||
* \class QgsUnitSelectionWidget
|
||||
* \ingroup gui
|
||||
* \brief A widget displaying a combobox allowing the user to choose between various display units,
|
||||
* such as millimeters or map unit. If the user chooses map units, a button appears allowing
|
||||
* adjustment of minimum and maximum scaling.
|
||||
* such as millimeters or map units.
|
||||
*
|
||||
* If the user chooses map units, a button appears allowing adjustment of minimum and maximum scaling.
|
||||
*
|
||||
* \see QgsMapUnitScaleWidget
|
||||
* \see QgsMapUnitScaleDialog
|
||||
*/
|
||||
@ -237,6 +239,10 @@ class GUI_EXPORT QgsUnitSelectionWidget : public QWidget, private Ui::QgsUnitSel
|
||||
void setShowMapScaleButton( bool show );
|
||||
|
||||
signals:
|
||||
|
||||
/**
|
||||
* Emitted when the selected unit is changed, or the definition of the map unit scale is changed.
|
||||
*/
|
||||
void changed();
|
||||
|
||||
private slots:
|
||||
|
Loading…
x
Reference in New Issue
Block a user