mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Run clang-tidy modernize-use-override to remove all the redundant virtual keywords from overridden methods, and add some missing overrides. Another benefit is that this has also added the overrides on destructors, which will cause a build failure if a base class is missing a virtual destructor.
60 lines
1.9 KiB
Plaintext
60 lines
1.9 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsvectorlayerfeaturecounter.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
class QgsVectorLayerFeatureCounter : QgsTask
|
|
{
|
|
%Docstring
|
|
|
|
Counts the features in a QgsVectorLayer in task.
|
|
You should most likely not use this directly and instead call
|
|
QgsVectorLayer.countSymbolFeatures() and connect to the signal
|
|
QgsVectorLayer.symbolFeatureCountMapChanged().
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvectorlayerfeaturecounter.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVectorLayerFeatureCounter( QgsVectorLayer *layer, const QgsExpressionContext &context = QgsExpressionContext() );
|
|
%Docstring
|
|
Create a new feature counter for ``layer``.
|
|
%End
|
|
|
|
virtual bool run();
|
|
|
|
|
|
|
|
long featureCount( const QString &legendKey ) const;
|
|
%Docstring
|
|
Get the feature count for a particular ``legendKey``.
|
|
If the key has not been found, -1 will be returned.
|
|
|
|
:rtype: long
|
|
%End
|
|
|
|
signals:
|
|
|
|
void symbolsCounted();
|
|
%Docstring
|
|
Emitted when the symbols have been counted.
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsvectorlayerfeaturecounter.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|