mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
remove exclude skipped-base-class for numeric format classes
This commit is contained in:
parent
aa35c1cbdc
commit
29f4b0ed6f
@ -157,7 +157,6 @@ Sets the ``interpretation`` of the numbers being converted.
|
||||
.. versionadded:: 3.26
|
||||
%End
|
||||
|
||||
|
||||
};
|
||||
|
||||
%ModuleHeaderCode
|
||||
@ -273,6 +272,8 @@ Writes the format to an XML ``element``.
|
||||
bool operator==( const QgsNumericFormat &other ) const;
|
||||
bool operator!=( const QgsNumericFormat &other ) const;
|
||||
|
||||
protected:
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
|
@ -34,7 +34,7 @@ QString QgsBearingNumericFormat::visibleName() const
|
||||
|
||||
int QgsBearingNumericFormat::sortKey()
|
||||
{
|
||||
return QgsNumericFormat::sortKey(); // clazy:exclude=skipped-base-method
|
||||
return DEFAULT_SORT_KEY;
|
||||
}
|
||||
|
||||
double QgsBearingNumericFormat::suggestSampleValue() const
|
||||
|
@ -55,7 +55,7 @@ QString QgsGeographicCoordinateNumericFormat::visibleName() const
|
||||
|
||||
int QgsGeographicCoordinateNumericFormat::sortKey()
|
||||
{
|
||||
return QgsNumericFormat::sortKey(); // clazy:exclude=skipped-base-method
|
||||
return DEFAULT_SORT_KEY;
|
||||
}
|
||||
|
||||
double QgsGeographicCoordinateNumericFormat::suggestSampleValue() const
|
||||
|
@ -37,7 +37,7 @@ QString QgsCurrencyNumericFormat::visibleName() const
|
||||
|
||||
int QgsCurrencyNumericFormat::sortKey()
|
||||
{
|
||||
return QgsNumericFormat::sortKey(); // clazy:exclude=skipped-base-method
|
||||
return DEFAULT_SORT_KEY;
|
||||
}
|
||||
|
||||
double QgsCurrencyNumericFormat::suggestSampleValue() const
|
||||
|
@ -47,7 +47,7 @@ QgsNumericFormatContext::QgsNumericFormatContext()
|
||||
|
||||
int QgsNumericFormat::sortKey()
|
||||
{
|
||||
return 100;
|
||||
return DEFAULT_SORT_KEY;
|
||||
}
|
||||
|
||||
double QgsNumericFormat::suggestSampleValue() const
|
||||
@ -72,4 +72,3 @@ bool QgsNumericFormat::operator!=( const QgsNumericFormat &other ) const
|
||||
{
|
||||
return !operator==( other );
|
||||
}
|
||||
|
||||
|
@ -222,7 +222,6 @@ class CORE_EXPORT QgsNumericFormatContext
|
||||
mInterpretation = interpretation;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
QChar mThousandsSep;
|
||||
QChar mDecimalSep;
|
||||
@ -350,6 +349,9 @@ class CORE_EXPORT QgsNumericFormat
|
||||
bool operator==( const QgsNumericFormat &other ) const;
|
||||
bool operator!=( const QgsNumericFormat &other ) const;
|
||||
|
||||
protected:
|
||||
|
||||
static constexpr int DEFAULT_SORT_KEY = 100;
|
||||
};
|
||||
|
||||
#endif // QGSNUMERICFORMAT_H
|
||||
|
@ -34,7 +34,7 @@ QString QgsPercentageNumericFormat::visibleName() const
|
||||
|
||||
int QgsPercentageNumericFormat::sortKey()
|
||||
{
|
||||
return QgsNumericFormat::sortKey(); // clazy:exclude=skipped-base-method
|
||||
return DEFAULT_SORT_KEY;
|
||||
}
|
||||
|
||||
double QgsPercentageNumericFormat::suggestSampleValue() const
|
||||
|
@ -35,7 +35,7 @@ QString QgsScientificNumericFormat::visibleName() const
|
||||
|
||||
int QgsScientificNumericFormat::sortKey()
|
||||
{
|
||||
return QgsNumericFormat::sortKey(); // clazy:exclude=skipped-base-method
|
||||
return DEFAULT_SORT_KEY;
|
||||
}
|
||||
|
||||
QString QgsScientificNumericFormat::formatDouble( double value, const QgsNumericFormatContext &context ) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user