mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[sipify] fix false virtual methods
This commit is contained in:
parent
0591225fbc
commit
41ceed3d77
@ -509,8 +509,7 @@ Check if the given path is hidden from the browser model
|
||||
|
||||
public slots:
|
||||
virtual void childrenCreated();
|
||||
virtual void directoryChanged();
|
||||
|
||||
void directoryChanged();
|
||||
|
||||
protected:
|
||||
void init();
|
||||
|
@ -24,8 +24,7 @@ class QgsGeometryValidator : QThread
|
||||
|
||||
virtual void run();
|
||||
|
||||
virtual void stop();
|
||||
|
||||
void stop();
|
||||
|
||||
static void validateGeometry( const QgsGeometry *g, QList<QgsGeometry::Error> &errors /Out/, QgsGeometry::ValidationMethod method = QgsGeometry::ValidatorQgisInternal );
|
||||
%Docstring
|
||||
|
@ -35,6 +35,12 @@ class QgsSingleSymbolRenderer : QgsFeatureRenderer
|
||||
|
||||
virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props = QgsStringMap() ) const;
|
||||
static QgsFeatureRenderer *createFromSld( QDomElement &element, QgsWkbTypes::GeometryType geomType );
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
%Docstring
|
||||
:rtype: QgsFeatureRenderer
|
||||
%End
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
virtual QgsFeatureRenderer::Capabilities capabilities();
|
||||
virtual QgsSymbolList symbols( QgsRenderContext &context );
|
||||
|
@ -212,8 +212,10 @@ Returns the name of the setting group in which the collapsed state will be saved
|
||||
void init();
|
||||
virtual void showEvent( QShowEvent *event );
|
||||
|
||||
virtual QString saveKey() const;
|
||||
|
||||
QString saveKey() const;
|
||||
%Docstring
|
||||
:rtype: str
|
||||
%End
|
||||
|
||||
|
||||
};
|
||||
|
@ -714,6 +714,7 @@ while ($LINE_IDX < $LINE_COUNT){
|
||||
elsif ( $LINE !~ m/^(\s*)virtual\b(.*)$/ ){
|
||||
#sip often requires the virtual keyword to be present, or it chokes on covariant return types
|
||||
#in overridden methods
|
||||
dbg_info('adding virtual keyword for overriden method');
|
||||
$LINE =~ s/^(\s*?)\b(.*)$/$1virtual $2\n/;
|
||||
}
|
||||
}
|
||||
@ -833,6 +834,9 @@ while ($LINE_IDX < $LINE_COUNT){
|
||||
$RETURN_TYPE = '';
|
||||
$IS_OVERRIDE = 0;
|
||||
}
|
||||
else {
|
||||
$IS_OVERRIDE = 0;
|
||||
}
|
||||
}
|
||||
write_header_footer();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user