Skip to content
Permalink
Browse files

Update documentation

  • Loading branch information
pblottiere committed Mar 2, 2018
1 parent 777fdeb commit 1ad02adfe096e50155d1f3d9b253449b8b61d7d0
@@ -158,6 +158,10 @@ delayed until an explicit reloading of the layer.
:param lazy: True to delay the loading, false otherwise

.. versionadded:: 3.2

.. seealso:: :py:func:`QgsDataProvider.reloadData`

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

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

.. versionadded:: 3.2

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

QString geometryField() const;
@@ -136,13 +136,16 @@ class CORE_EXPORT QgsVirtualLayerDefinition
* delayed until an explicit reloading of the layer.
* \param lazy True to delay the loading, false otherwise
* \since QGIS 3.2
* \see QgsDataProvider::reloadData()
* \see isLazy()
*/
void setLazy( bool lazy ) { mLazy = lazy; }

/**
* Returns the lazy mode.
* \returns True if the loading is delayed, false otherwise.
* \since QGIS 3.2
* \see setLazy()
*/
bool isLazy() const { return mLazy; }

@@ -53,17 +53,7 @@ class QgsVirtualLayerProvider: public QgsVectorDataProvider
QString description() const override;
QgsAttributeList pkAttributeIndexes() const override;
QSet<QgsMapLayerDependency> dependencies() const override;

/**
* Interrupts the pending query.
* \since QGIS 3.2
*/
bool cancel() override;

/**
* Reloads the underlying data.
* \since QGIS 3.2
*/
void reloadData() override;

private:

0 comments on commit 1ad02ad

Please sign in to comment.
You can’t perform that action at this time.