Skip to content

Commit

Permalink
Fix clazy fully-qualified-moc-types warnings
Browse files Browse the repository at this point in the history
From the clazy docs:

"Warns when a signal, slot or invokable declaration is not using fully-qualified
type names, which will break old-style connects and interacting with QML."
  • Loading branch information
nyalldawson committed Feb 2, 2018
1 parent b2b500d commit a08c05b
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion python/core/layout/qgslayoutitempicture.sip.in
Expand Up @@ -264,7 +264,7 @@ the item's frame, only the way the picture is drawn within the item.
.. seealso:: :py:func:`pictureRotation`
%End

void setResizeMode( ResizeMode mode );
void setResizeMode( QgsLayoutItemPicture::ResizeMode mode );
%Docstring
Sets the resize ``mode`` used for drawing the picture within the item bounds.

Expand Down
38 changes: 19 additions & 19 deletions python/core/qgsunittypes.sip.in
Expand Up @@ -189,12 +189,12 @@ Returns the conversion factor between the specified distance units.
%End


static DistanceUnitType unitType( AreaUnit unit );
static DistanceUnitType unitType( QgsUnitTypes::AreaUnit unit );
%Docstring
Returns the type for an areal unit.
%End

static QString encodeUnit( AreaUnit unit );
static QString encodeUnit( QgsUnitTypes::AreaUnit unit );
%Docstring
Encodes an areal unit to a string.

Expand All @@ -217,7 +217,7 @@ Decodes an areal unit from a string.
.. seealso:: :py:func:`encodeUnit`
%End

static QString toString( AreaUnit unit );
static QString toString( QgsUnitTypes::AreaUnit unit );
%Docstring
Returns a translated string representing an areal unit.

Expand All @@ -226,7 +226,7 @@ Returns a translated string representing an areal unit.
.. seealso:: :py:func:`stringToAreaUnit`
%End

static QString toAbbreviatedString( AreaUnit unit );
static QString toAbbreviatedString( QgsUnitTypes::AreaUnit unit );
%Docstring
Returns a translated abbreviation representing an areal unit.

Expand All @@ -247,7 +247,7 @@ Converts a translated string to an areal unit.
.. seealso:: :py:func:`toString`
%End

static double fromUnitToUnitFactor( AreaUnit fromUnit, AreaUnit toUnit );
static double fromUnitToUnitFactor( QgsUnitTypes::AreaUnit fromUnit, QgsUnitTypes::AreaUnit toUnit );
%Docstring
Returns the conversion factor between the specified areal units.

Expand All @@ -257,7 +257,7 @@ Returns the conversion factor between the specified areal units.
:return: multiplication factor to convert between units
%End

static AreaUnit distanceToAreaUnit( QgsUnitTypes::DistanceUnit distanceUnit );
static QgsUnitTypes::AreaUnit distanceToAreaUnit( QgsUnitTypes::DistanceUnit distanceUnit );
%Docstring
Converts a distance unit to its corresponding area unit, e.g., meters to square meters

Expand All @@ -267,7 +267,7 @@ Converts a distance unit to its corresponding area unit, e.g., meters to square
%End


static QString encodeUnit( AngleUnit unit );
static QString encodeUnit( QgsUnitTypes::AngleUnit unit );
%Docstring
Encodes an angular unit to a string.

Expand All @@ -278,7 +278,7 @@ Encodes an angular unit to a string.
.. seealso:: :py:func:`decodeAngleUnit`
%End

static AngleUnit decodeAngleUnit( const QString &string, bool *ok /Out/ = 0 );
static QgsUnitTypes::AngleUnit decodeAngleUnit( const QString &string, bool *ok /Out/ = 0 );
%Docstring
Decodes an angular unit from a string.

Expand All @@ -290,14 +290,14 @@ Decodes an angular unit from a string.
.. seealso:: :py:func:`encodeUnit`
%End

static QString toString( AngleUnit unit );
static QString toString( QgsUnitTypes::AngleUnit unit );
%Docstring
Returns a translated string representing an angular unit.

:param unit: unit to convert to string
%End

static double fromUnitToUnitFactor( AngleUnit fromUnit, AngleUnit toUnit );
static double fromUnitToUnitFactor( QgsUnitTypes::AngleUnit fromUnit, QgsUnitTypes::AngleUnit toUnit );
%Docstring
Returns the conversion factor between the specified angular units.

Expand All @@ -307,7 +307,7 @@ Returns the conversion factor between the specified angular units.
:return: multiplication factor to convert between units
%End

static QString formatAngle( double angle, int decimals, AngleUnit unit );
static QString formatAngle( double angle, int decimals, QgsUnitTypes::AngleUnit unit );
%Docstring
Returns an angle formatted as a friendly string.

Expand Down Expand Up @@ -376,7 +376,7 @@ square kilometers
%End


static QString encodeUnit( RenderUnit unit );
static QString encodeUnit( QgsUnitTypes::RenderUnit unit );
%Docstring
Encodes a render unit to a string.

Expand All @@ -387,7 +387,7 @@ Encodes a render unit to a string.
.. seealso:: :py:func:`decodeRenderUnit`
%End

static RenderUnit decodeRenderUnit( const QString &string, bool *ok /Out/ = 0 );
static QgsUnitTypes::RenderUnit decodeRenderUnit( const QString &string, bool *ok /Out/ = 0 );
%Docstring
Decodes a render unit from a string.

Expand All @@ -399,7 +399,7 @@ Decodes a render unit from a string.
.. seealso:: :py:func:`encodeUnit`
%End

static QString toString( RenderUnit unit );
static QString toString( QgsUnitTypes::RenderUnit unit );
%Docstring
Returns a translated string representing a render ``unit``.

Expand All @@ -408,7 +408,7 @@ Returns a translated string representing a render ``unit``.



static QString encodeUnit( LayoutUnit unit );
static QString encodeUnit( QgsUnitTypes::LayoutUnit unit );
%Docstring
Encodes a layout unit to a string.

Expand All @@ -421,7 +421,7 @@ Encodes a layout unit to a string.
.. versionadded:: 3.0
%End

static LayoutUnit decodeLayoutUnit( const QString &string, bool *ok /Out/ = 0 );
static QgsUnitTypes::LayoutUnit decodeLayoutUnit( const QString &string, bool *ok /Out/ = 0 );
%Docstring
Decodes a layout unit from a string.

Expand All @@ -435,21 +435,21 @@ Decodes a layout unit from a string.
.. versionadded:: 3.0
%End

static LayoutUnitType unitType( const LayoutUnit units );
static QgsUnitTypes::LayoutUnitType unitType( const QgsUnitTypes::LayoutUnit units );
%Docstring
Returns the type for a unit of measurement.

.. versionadded:: 3.0
%End

static QString toAbbreviatedString( LayoutUnit unit );
static QString toAbbreviatedString( QgsUnitTypes::LayoutUnit unit );
%Docstring
Returns a translated abbreviation representing a layout ``unit`` (e.g. "mm").

.. versionadded:: 3.0
%End

static QString toString( LayoutUnit unit );
static QString toString( QgsUnitTypes::LayoutUnit unit );
%Docstring
Returns a translated string representing a layout ``unit``.

Expand Down
6 changes: 3 additions & 3 deletions python/gui/attributetable/qgsfeatureselectionmodel.sip.in
Expand Up @@ -66,21 +66,21 @@ Views using this model should connect to and properly process this signal.

public slots:

virtual void select( const QModelIndex &index, SelectionFlags command );
virtual void select( const QModelIndex &index, QItemSelectionModel::SelectionFlags command );
%Docstring
Overwritten to do NOTHING (we handle selection ourselves)

.. seealso:: :py:func:`selectFeatures`
%End

virtual void select( const QItemSelection &selection, SelectionFlags command );
virtual void select( const QItemSelection &selection, QItemSelectionModel::SelectionFlags command );
%Docstring
Overwritten to do NOTHING (we handle selection ourselves)

.. seealso:: :py:func:`selectFeatures`
%End

virtual void selectFeatures( const QItemSelection &selection, SelectionFlags command );
virtual void selectFeatures( const QItemSelection &selection, QItemSelectionModel::SelectionFlags command );
%Docstring
Select features on this table. Is to be used in favor of the stock select methods.

Expand Down
Expand Up @@ -222,7 +222,7 @@ Emit this signal, whenever the value changed.
:param value: The new value
%End

void constraintStatusChanged( const QString &constraint, const QString &desc, const QString &err, ConstraintResult status );
void constraintStatusChanged( const QString &constraint, const QString &desc, const QString &err, QgsEditorWidgetWrapper::ConstraintResult status );
%Docstring
Emit this signal when the constraint status changed.
constraintStatusChanged
Expand Down
2 changes: 1 addition & 1 deletion python/gui/qgscolorwidgets.sip.in
Expand Up @@ -95,7 +95,7 @@ Sets the color for the widget
.. seealso:: :py:func:`color`
%End

virtual void setComponent( const ColorComponent component );
virtual void setComponent( const QgsColorWidget::ColorComponent component );
%Docstring
Sets the color component which the widget controls

Expand Down
4 changes: 2 additions & 2 deletions python/gui/qgsfloatingwidget.sip.in
Expand Up @@ -105,12 +105,12 @@ to this anchor widget whenever the widget's parent is resized or moved.
Emitted when the anchor widget changes
%End

void anchorPointChanged( AnchorPoint point );
void anchorPointChanged( QgsFloatingWidget::AnchorPoint point );
%Docstring
Emitted when the anchor point changes
%End

void anchorWidgetPointChanged( AnchorPoint point );
void anchorWidgetPointChanged( QgsFloatingWidget::AnchorPoint point );
%Docstring
Emitted when the anchor widget point changes
%End
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolidentifyaction.h
Expand Up @@ -61,7 +61,7 @@ class APP_EXPORT QgsMapToolIdentifyAction : public QgsMapToolIdentify

public slots:
void handleCopyToClipboard( QgsFeatureStore & );
void handleChangedRasterResults( QList<IdentifyResult> &results );
void handleChangedRasterResults( QList<QgsMapToolIdentify::IdentifyResult> &results );

signals:

Expand Down
2 changes: 1 addition & 1 deletion src/auth/pkipaths/qgsauthpkipathsedit.h
Expand Up @@ -51,7 +51,7 @@ class QgsAuthPkiPathsEdit : public QgsAuthMethodEdit, private Ui::QgsAuthPkiPath

private slots:
void clearPkiMessage( QLineEdit *lineedit );
void writePkiMessage( QLineEdit *lineedit, const QString &msg, Validity valid = Unknown );
void writePkiMessage( QLineEdit *lineedit, const QString &msg, QgsAuthPkiPathsEdit::Validity valid = Unknown );

void clearPkiPathsCertPath();
void clearPkiPathsKeyPath();
Expand Down
2 changes: 1 addition & 1 deletion src/auth/pkipkcs12/qgsauthpkcs12edit.h
Expand Up @@ -51,7 +51,7 @@ class QgsAuthPkcs12Edit : public QgsAuthMethodEdit, private Ui::QgsAuthPkcs12Edi

private slots:
void clearPkiMessage( QLineEdit *lineedit );
void writePkiMessage( QLineEdit *lineedit, const QString &msg, Validity valid = Unknown );
void writePkiMessage( QLineEdit *lineedit, const QString &msg, QgsAuthPkcs12Edit::Validity valid = Unknown );

void clearPkcs12BundlePath();
void clearPkcs12BundlePass();
Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitempicture.h
Expand Up @@ -245,7 +245,7 @@ class CORE_EXPORT QgsLayoutItemPicture: public QgsLayoutItem
* \param mode ResizeMode to use for image file
* \see resizeMode
*/
void setResizeMode( ResizeMode mode );
void setResizeMode( QgsLayoutItemPicture::ResizeMode mode );

/**
* Recalculates the source image (if using an expression for picture's source)
Expand Down

0 comments on commit a08c05b

Please sign in to comment.