Skip to content

Commit 1ad02ad

Browse files
committed
Update documentation
1 parent 777fdeb commit 1ad02ad

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

python/core/qgsvirtuallayerdefinition.sip.in

+6
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ delayed until an explicit reloading of the layer.
158158
:param lazy: True to delay the loading, false otherwise
159159

160160
.. versionadded:: 3.2
161+
162+
.. seealso:: :py:func:`QgsDataProvider.reloadData`
163+
164+
.. seealso:: :py:func:`isLazy`
161165
%End
162166

163167
bool isLazy() const;
@@ -167,6 +171,8 @@ Returns the lazy mode.
167171
:return: True if the loading is delayed, false otherwise.
168172

169173
.. versionadded:: 3.2
174+
175+
.. seealso:: :py:func:`setLazy`
170176
%End
171177

172178
QString geometryField() const;

src/core/qgsvirtuallayerdefinition.h

+3
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,16 @@ class CORE_EXPORT QgsVirtualLayerDefinition
136136
* delayed until an explicit reloading of the layer.
137137
* \param lazy True to delay the loading, false otherwise
138138
* \since QGIS 3.2
139+
* \see QgsDataProvider::reloadData()
140+
* \see isLazy()
139141
*/
140142
void setLazy( bool lazy ) { mLazy = lazy; }
141143

142144
/**
143145
* Returns the lazy mode.
144146
* \returns True if the loading is delayed, false otherwise.
145147
* \since QGIS 3.2
148+
* \see setLazy()
146149
*/
147150
bool isLazy() const { return mLazy; }
148151

src/providers/virtual/qgsvirtuallayerprovider.h

-10
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,7 @@ class QgsVirtualLayerProvider: public QgsVectorDataProvider
5353
QString description() const override;
5454
QgsAttributeList pkAttributeIndexes() const override;
5555
QSet<QgsMapLayerDependency> dependencies() const override;
56-
57-
/**
58-
* Interrupts the pending query.
59-
* \since QGIS 3.2
60-
*/
6156
bool cancel() override;
62-
63-
/**
64-
* Reloads the underlying data.
65-
* \since QGIS 3.2
66-
*/
6757
void reloadData() override;
6858

6959
private:

0 commit comments

Comments
 (0)