Skip to content

Commit

Permalink
Swap missing 0->nullptr and add missing overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 12, 2017
1 parent 0f26537 commit a15b54d
Show file tree
Hide file tree
Showing 467 changed files with 1,000 additions and 784 deletions.
3 changes: 3 additions & 0 deletions python/core/composer/qgsaddremoveitemcommand.sip
Expand Up @@ -29,6 +29,9 @@ class QgsAddRemoveItemCommand: QObject, QUndoCommand
};

QgsAddRemoveItemCommand( State s, QgsComposerItem *item, QgsComposition *c, const QString &text, QUndoCommand *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsAddRemoveItemCommand
%End
~QgsAddRemoveItemCommand();

virtual void redo();
Expand Down
3 changes: 3 additions & 0 deletions python/core/composer/qgsaddremovemultiframecommand.sip
Expand Up @@ -26,6 +26,9 @@ class QgsAddRemoveMultiFrameCommand: QUndoCommand
};

QgsAddRemoveMultiFrameCommand( State s, QgsComposerMultiFrame *multiFrame, QgsComposition *c, const QString &text, QUndoCommand *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsAddRemoveMultiFrameCommand
%End
~QgsAddRemoveMultiFrameCommand();
virtual void redo();

Expand Down
3 changes: 3 additions & 0 deletions python/core/composer/qgscomposeritemcommand.sip
Expand Up @@ -22,6 +22,9 @@ class QgsComposerItemCommand: QUndoCommand
%End
public:
QgsComposerItemCommand( QgsComposerItem *item, const QString &text, QUndoCommand *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsComposerItemCommand
%End

virtual void undo();

Expand Down
4 changes: 4 additions & 0 deletions python/core/composer/qgscomposermultiframecommand.sip
Expand Up @@ -18,7 +18,11 @@ class QgsComposerMultiFrameCommand: QUndoCommand
#include "qgscomposermultiframecommand.h"
%End
public:

QgsComposerMultiFrameCommand( QgsComposerMultiFrame *multiFrame, const QString &text, QUndoCommand *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsComposerMultiFrameCommand
%End

virtual void undo();

Expand Down
4 changes: 2 additions & 2 deletions python/core/geonode/qgsgeonoderequest.sip
Expand Up @@ -43,13 +43,13 @@ class QgsGeoNodeRequest : QObject
%End
public:

explicit QgsGeoNodeRequest( bool forceRefresh, QObject *parent = 0 );
explicit QgsGeoNodeRequest( bool forceRefresh, QObject *parent = nullptr );
%Docstring
Constructor for QgsGeoNodeRequest.

If ``forceRefresh`` is false, then cached copies of the request may be reused.
%End
QgsGeoNodeRequest( const QString &baseUrl, bool forceRefresh, QObject *parent = 0 );
QgsGeoNodeRequest( const QString &baseUrl, bool forceRefresh, QObject *parent = nullptr );
virtual ~QgsGeoNodeRequest();

bool request( const QString &endPoint );
Expand Down
3 changes: 2 additions & 1 deletion python/core/gps/qgsqtlocationconnection.sip
Expand Up @@ -35,7 +35,8 @@ class QgsQtLocationConnection: QgsGPSConnection
Needed to make QtLocation detected
%End

void parseData();
virtual void parseData();

%Docstring
Parse available data source content
%End
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgsmaplayerlegend.sip
Expand Up @@ -24,7 +24,11 @@ class QgsMapLayerLegend : QObject
#include "qgsmaplayerlegend.h"
%End
public:

explicit QgsMapLayerLegend( QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsMapLayerLegend
%End


virtual QList<QgsLayerTreeModelLegendNode *> createLayerTreeModelLegendNodes( QgsLayerTreeLayer *nodeLayer ) = 0 /Factory/;
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgssnappingutils.sip
Expand Up @@ -34,7 +34,11 @@ class QgsSnappingUtils : QObject
#include "qgssnappingutils.h"
%End
public:

QgsSnappingUtils( QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsSnappingUtils
%End
~QgsSnappingUtils();


Expand Down
4 changes: 4 additions & 0 deletions python/core/qgstransactiongroup.sip
Expand Up @@ -15,7 +15,11 @@ class QgsTransactionGroup : QObject
#include "qgstransactiongroup.h"
%End
public:

explicit QgsTransactionGroup( QObject *parent = 0 );
%Docstring
Constructor for QgsTransactionGroup
%End

bool addLayer( QgsVectorLayer *layer );
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/gui/attributetable/qgsattributetableview.sip
Expand Up @@ -25,7 +25,11 @@ class QgsAttributeTableView : QTableView
#include "qgsattributetableview.h"
%End
public:

QgsAttributeTableView( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsAttributeTableView
%End

virtual void setModel( QgsAttributeTableFilterModel *filterModel );

Expand Down
4 changes: 4 additions & 0 deletions python/gui/attributetable/qgsfeaturelistmodel.sip
Expand Up @@ -37,7 +37,11 @@ class QgsFeatureListModel : QAbstractProxyModel, QgsFeatureModel
};

public:

explicit QgsFeatureListModel( QgsAttributeTableFilterModel *sourceModel, QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsFeatureListModel
%End

virtual void setSourceModel( QgsAttributeTableFilterModel *sourceModel );
QgsVectorLayerCache *layerCache();
Expand Down
4 changes: 4 additions & 0 deletions python/gui/auth/qgsauthcertificateinfo.sip
Expand Up @@ -21,10 +21,14 @@ class QgsAuthCertInfo : QWidget
#include "qgsauthcertificateinfo.h"
%End
public:

explicit QgsAuthCertInfo( const QSslCertificate &cert,
bool manageCertTrust = false,
QWidget *parent /TransferThis/ = 0,
const QList<QSslCertificate> &connectionCAs = QList<QSslCertificate>() );
%Docstring
Constructor for QgsAuthCertInfo
%End

bool trustCacheRebuilt();
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/gui/editorwidgets/qgsdatetimeedit.sip
Expand Up @@ -19,7 +19,11 @@ class QgsDateTimeEdit : QDateTimeEdit
#include "qgsdatetimeedit.h"
%End
public:

explicit QgsDateTimeEdit( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsDateTimeEdit
%End

void setAllowNull( bool allowNull );
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.sip
Expand Up @@ -20,7 +20,11 @@ class QgsDefaultSearchWidgetWrapper : QgsSearchWidgetWrapper
#include "qgsdefaultsearchwidgetwrapper.h"
%End
public:

explicit QgsDefaultSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsDefaultSearchWidgetWrapper
%End

public:
virtual QString expression() const;
Expand Down
Expand Up @@ -30,12 +30,16 @@ class QgsRelationReferenceWidgetWrapper : QgsEditorWidgetWrapper
#include "qgsrelationreferencewidgetwrapper.h"
%End
public:

explicit QgsRelationReferenceWidgetWrapper( QgsVectorLayer *vl,
int fieldIdx,
QWidget *editor,
QgsMapCanvas *canvas,
QgsMessageBar *messageBar,
QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsRelationReferenceWidgetWrapper
%End

virtual QWidget *createWidget( QWidget *parent );
virtual void initWidget( QWidget *editor );
Expand Down
4 changes: 4 additions & 0 deletions python/gui/editorwidgets/qgsrelationwidgetwrapper.sip
Expand Up @@ -22,7 +22,11 @@ class QgsRelationWidgetWrapper : QgsWidgetWrapper
#include "qgsrelationwidgetwrapper.h"
%End
public:

explicit QgsRelationWidgetWrapper( QgsVectorLayer *vl, const QgsRelation &relation, QWidget *editor = 0, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsRelationWidgetWrapper
%End

bool showLabel() const;
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/gui/editorwidgets/qgsvaluemapsearchwidgetwrapper.sip
Expand Up @@ -21,7 +21,11 @@ class QgsValueMapSearchWidgetWrapper : QgsSearchWidgetWrapper
#include "qgsvaluemapsearchwidgetwrapper.h"
%End
public:

explicit QgsValueMapSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsValueMapSearchWidgetWrapper
%End
virtual bool applyDirectly();

virtual QString expression() const;
Expand Down
Expand Up @@ -23,7 +23,11 @@ class QgsValueRelationSearchWidgetWrapper : QgsSearchWidgetWrapper
#include "qgsvaluerelationsearchwidgetwrapper.h"
%End
public:

explicit QgsValueRelationSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsValueRelationSearchWidgetWrapper
%End
virtual bool applyDirectly();

virtual QString expression() const;
Expand Down
4 changes: 4 additions & 0 deletions python/gui/layertree/qgscustomlayerorderwidget.sip
Expand Up @@ -27,7 +27,11 @@ class QgsCustomLayerOrderWidget : QWidget
#include "qgscustomlayerorderwidget.h"
%End
public:

explicit QgsCustomLayerOrderWidget( QgsLayerTreeMapCanvasBridge *bridge, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCustomLayerOrderWidget
%End

signals:

Expand Down
4 changes: 4 additions & 0 deletions python/gui/layertree/qgslayertreeview.sip
Expand Up @@ -37,7 +37,11 @@ class QgsLayerTreeView : QTreeView
sipType = 0;
%End
public:

explicit QgsLayerTreeView( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsLayerTreeView
%End
~QgsLayerTreeView();

virtual void setModel( QAbstractItemModel *model );
Expand Down
4 changes: 2 additions & 2 deletions python/gui/locator/qgslocatorfilter.sip
Expand Up @@ -85,7 +85,7 @@ class QgsLocatorFilter : QObject
Lowest
};

QgsLocatorFilter( QObject *parent = 0 );
QgsLocatorFilter( QObject *parent = nullptr );
%Docstring
Constructor for QgsLocatorFilter.
%End
Expand Down Expand Up @@ -193,7 +193,7 @@ class QgsLocatorFilter : QObject
:rtype: bool
%End

virtual void openConfigWidget( QWidget *parent = 0 );
virtual void openConfigWidget( QWidget *parent = nullptr );
%Docstring
Opens the configuration widget for the filter (if it has one), with the specified ``parent`` widget.
The base class implementation does nothing. Subclasses can override this to show their own
Expand Down
4 changes: 4 additions & 0 deletions python/gui/qgsblendmodecombobox.sip
Expand Up @@ -20,7 +20,11 @@ class QgsBlendModeComboBox : QComboBox
#include "qgsblendmodecombobox.h"
%End
public:

QgsBlendModeComboBox( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsBlendModeComboBox
%End

QPainter::CompositionMode blendMode();
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/gui/qgsbrowsertreeview.sip
Expand Up @@ -22,7 +22,11 @@ class QgsBrowserTreeView : QTreeView
#include "qgsbrowsertreeview.h"
%End
public:

QgsBrowserTreeView( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsBrowserTreeView
%End

virtual void setModel( QAbstractItemModel *model );
void setBrowserModel( QgsBrowserModel *model );
Expand Down
4 changes: 4 additions & 0 deletions python/gui/qgscodeeditorcss.sip
Expand Up @@ -22,7 +22,11 @@ class QgsCodeEditorCSS : QgsCodeEditor
#include "qgscodeeditorcss.h"
%End
public:

QgsCodeEditorCSS( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCodeEditorCSS
%End

};

Expand Down
4 changes: 4 additions & 0 deletions python/gui/qgscodeeditorhtml.sip
Expand Up @@ -24,7 +24,11 @@ class QgsCodeEditorHTML : QgsCodeEditor
#include "qgscodeeditorhtml.h"
%End
public:

QgsCodeEditorHTML( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCodeEditorHTML
%End

};

Expand Down
3 changes: 3 additions & 0 deletions python/gui/qgscodeeditorsql.sip
Expand Up @@ -25,6 +25,9 @@ class QgsCodeEditorSQL : QgsCodeEditor
%End
public:
QgsCodeEditorSQL( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCodeEditorSQL
%End

};

Expand Down
3 changes: 3 additions & 0 deletions python/gui/qgscomposerview.sip
Expand Up @@ -73,6 +73,9 @@ class QgsComposerView: QGraphicsView
};

QgsComposerView( QWidget *parent /TransferThis/ = 0, const char *name = 0, Qt::WindowFlags f = 0 );
%Docstring
Constructor for QgsComposerView
%End

void groupItems();
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/gui/qgsdetaileditemdelegate.sip
Expand Up @@ -21,7 +21,11 @@ class QgsDetailedItemDelegate : QAbstractItemDelegate
#include "qgsdetaileditemdelegate.h"
%End
public:

QgsDetailedItemDelegate( QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsDetailedItemDelegate
%End
~QgsDetailedItemDelegate();
virtual void paint( QPainter *painter,
const QStyleOptionViewItem &option,
Expand Down
4 changes: 4 additions & 0 deletions python/gui/qgsdetaileditemwidget.sip
Expand Up @@ -19,7 +19,11 @@ class QgsDetailedItemWidget : QWidget
#include "qgsdetaileditemwidget.h"
%End
public:

QgsDetailedItemWidget( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsDetailedItemWidget
%End
void setData( const QgsDetailedItemData &data );
void setChecked( bool flag );
};
Expand Down
3 changes: 2 additions & 1 deletion python/gui/qgsexpressionbuilderwidget.sip
Expand Up @@ -295,7 +295,8 @@ Sets the expression string for the widget
%End

protected:
void showEvent( QShowEvent *e );
virtual void showEvent( QShowEvent *e );


};

Expand Down
4 changes: 4 additions & 0 deletions python/gui/qgsfeatureselectiondlg.sip
Expand Up @@ -28,7 +28,11 @@ class QgsFeatureSelectionDlg : QDialog
sipType = 0;
%End
public:

explicit QgsFeatureSelectionDlg( QgsVectorLayer *vl, QgsAttributeEditorContext &context, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsFeatureSelectionDlg
%End

const QgsFeatureIds &selectedFeatures();
%Docstring
Expand Down
1 change: 1 addition & 0 deletions python/gui/qgsmapcanvastracer.sip
Expand Up @@ -61,6 +61,7 @@ Report a path finding error to the user

protected:
virtual void configure();

%Docstring
Sets configuration from current snapping settings and canvas settings
%End
Expand Down
3 changes: 3 additions & 0 deletions python/gui/qgsmessagebar.sip
Expand Up @@ -30,6 +30,9 @@ class QgsMessageBar: QFrame
};

QgsMessageBar( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsMessageBar
%End

void pushItem( QgsMessageBarItem *item /Transfer/ );
%Docstring
Expand Down

0 comments on commit a15b54d

Please sign in to comment.