@@ -86,21 +86,21 @@ class QUICK_EXPORT QgsQuickUtils: public QObject
86
86
*
87
87
* \since QGIS 3.4
88
88
*/
89
- Q_INVOKABLE QgsPointXY pointXY ( double x, double y ) const ;
89
+ Q_INVOKABLE static QgsPointXY pointXY ( double x, double y );
90
90
91
91
/* *
92
92
* Creates QgsPoint in QML
93
93
*
94
94
* \since QGIS 3.4
95
95
*/
96
- 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 ;
96
+ Q_INVOKABLE static QgsPoint point ( double x, double y, double z = std::numeric_limits<double >::quiet_NaN(), double m = std::numeric_limits<double>::quiet_NaN() );
97
97
98
98
/* *
99
99
* Converts QGeoCoordinate to QgsPoint
100
100
*
101
101
* \since QGIS 3.4
102
102
*/
103
- Q_INVOKABLE QgsPoint coordinateToPoint ( const QGeoCoordinate &coor ) const ;
103
+ Q_INVOKABLE static QgsPoint coordinateToPoint ( const QGeoCoordinate &coor );
104
104
105
105
/* *
106
106
* Transforms point between different crs from QML
@@ -121,20 +121,20 @@ class QUICK_EXPORT QgsQuickUtils: public QObject
121
121
* Returns whether file on path exists
122
122
* \since QGIS 3.4
123
123
*/
124
- Q_INVOKABLE bool fileExists ( const QString &path ) const ;
124
+ Q_INVOKABLE static bool fileExists ( const QString &path );
125
125
126
126
/* *
127
127
* Extracts filename from path
128
128
* \since QGIS 3.4
129
129
*/
130
- Q_INVOKABLE QString getFileName ( const QString &path ) const ;
130
+ Q_INVOKABLE static QString getFileName ( const QString &path );
131
131
132
132
/* *
133
133
* Log message in QgsMessageLog
134
134
*/
135
- Q_INVOKABLE void logMessage ( const QString &message,
136
- const QString &tag = QString( " QgsQuick" ),
137
- Qgis::MessageLevel level = Qgis::Warning );
135
+ Q_INVOKABLE static void logMessage ( const QString &message,
136
+ const QString &tag = QString( " QgsQuick" ),
137
+ Qgis::MessageLevel level = Qgis::Warning );
138
138
139
139
/* *
140
140
* QgsQuickFeatureLayerPair factory for tuple of QgsFeature and QgsVectorLayer used in QgsQUick library.
@@ -143,14 +143,14 @@ class QUICK_EXPORT QgsQuickUtils: public QObject
143
143
*
144
144
* \since QGIS 3.4
145
145
*/
146
- Q_INVOKABLE QgsQuickFeatureLayerPair featureFactory ( const QgsFeature &feature, QgsVectorLayer *layer = nullptr ) const ;
146
+ Q_INVOKABLE static QgsQuickFeatureLayerPair featureFactory ( const QgsFeature &feature, QgsVectorLayer *layer = nullptr );
147
147
148
148
/* *
149
149
* Returns QUrl to image from library's /images folder.
150
150
*
151
151
* \since QGIS 3.4
152
152
*/
153
- Q_INVOKABLE const QUrl getThemeIcon ( const QString &name ) const ;
153
+ Q_INVOKABLE static const QUrl getThemeIcon ( const QString &name );
154
154
155
155
/* *
156
156
* Returns url to field editor component for a feature form.
@@ -159,7 +159,7 @@ class QUICK_EXPORT QgsQuickUtils: public QObject
159
159
*
160
160
* \since QGIS 3.4
161
161
*/
162
- Q_INVOKABLE const QUrl getEditorComponentSource ( const QString &widgetName );
162
+ Q_INVOKABLE static const QUrl getEditorComponentSource ( const QString &widgetName );
163
163
164
164
/* *
165
165
* \copydoc QgsCoordinateFormatter::format()
0 commit comments