Skip to content

Commit b55db3d

Browse files
committedJun 28, 2018
match Qt naming schema for factories
1 parent 7bfcaf4 commit b55db3d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎src/quickgui/qgsquickutils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ QgsCoordinateReferenceSystem QgsQuickUtils::coordinateReferenceSystemFromEpsgId(
4242
return QgsCoordinateReferenceSystem::fromEpsgId( epsg );
4343
}
4444

45-
QgsPointXY QgsQuickUtils::pointXYFactory( double x, double y ) const
45+
QgsPointXY QgsQuickUtils::pointXY( double x, double y ) const
4646
{
4747
return QgsPointXY( x, y );
4848
}
4949

50-
QgsPoint QgsQuickUtils::pointFactory( double x, double y, double z, double m ) const
50+
QgsPoint QgsQuickUtils::point( double x, double y, double z, double m ) const
5151
{
5252
return QgsPoint( x, y, z, m );
5353
}

‎src/quickgui/qgsquickutils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ class QUICK_EXPORT QgsQuickUtils: public QObject
8484
*
8585
* \since QGIS 3.4
8686
*/
87-
Q_INVOKABLE QgsPointXY pointXYFactory( double x, double y ) const;
87+
Q_INVOKABLE QgsPointXY pointXY( double x, double y ) const;
8888

8989
/**
9090
* Creates QgsPoint in QML
9191
*
9292
* \since QGIS 3.4
9393
*/
94-
Q_INVOKABLE QgsPoint pointFactory( double x, double y, double z = std::numeric_limits<double>::quiet_NaN(), double m = std::numeric_limits<double>::quiet_NaN() ) const;
94+
Q_INVOKABLE QgsPoint point( double x, double y, double z = std::numeric_limits<double>::quiet_NaN(), double m = std::numeric_limits<double>::quiet_NaN() ) const;
9595

9696
/**
9797
* Converts QGeoCoordinate to QgsPoint

‎tests/src/quickgui/testqgsquickutils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ void TestQgsQuickUtils::screenUnitsToMeters()
7272

7373
void TestQgsQuickUtils::transformedPoint()
7474
{
75-
QgsPointXY pointXY = utils.pointXYFactory( 49.9, 16.3 );
75+
QgsPointXY pointXY = utils.pointXY( 49.9, 16.3 );
7676
QGSCOMPARENEAR( pointXY.x(), 49.9, 1e-4 );
7777
QGSCOMPARENEAR( pointXY.y(), 16.3, 1e-4 );
7878

79-
QgsPoint point = utils.pointFactory( 1.0, -1.0 );
79+
QgsPoint point = utils.point( 1.0, -1.0 );
8080
QGSCOMPARENEAR( point.x(), 1.0, 1e-4 );
8181
QGSCOMPARENEAR( point.y(), -1.0, 1e-4 );
8282

0 commit comments

Comments
 (0)