Skip to content
Permalink
Browse files

Swap missing 0->nullptr and add missing overrides

  • Loading branch information
nyalldawson committed Dec 12, 2017
1 parent 0f26537 commit a15b54d99708225fa496bc7bccdb149b95cd8119
Showing 467 changed files with 1,000 additions and 784 deletions.
@@ -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();
@@ -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();

@@ -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();

@@ -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();

@@ -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 );
@@ -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
@@ -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/;
@@ -34,7 +34,11 @@ class QgsSnappingUtils : QObject
#include "qgssnappingutils.h"
%End
public:

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


@@ -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
@@ -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 );

@@ -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();
@@ -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
@@ -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
@@ -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;
@@ -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 );
@@ -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
@@ -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;
@@ -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;
@@ -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:

@@ -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 );
@@ -85,7 +85,7 @@ class QgsLocatorFilter : QObject
Lowest
};

QgsLocatorFilter( QObject *parent = 0 );
QgsLocatorFilter( QObject *parent = nullptr );
%Docstring
Constructor for QgsLocatorFilter.
%End
@@ -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
@@ -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
@@ -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 );
@@ -22,7 +22,11 @@ class QgsCodeEditorCSS : QgsCodeEditor
#include "qgscodeeditorcss.h"
%End
public:

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

};

@@ -24,7 +24,11 @@ class QgsCodeEditorHTML : QgsCodeEditor
#include "qgscodeeditorhtml.h"
%End
public:

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

};

@@ -25,6 +25,9 @@ class QgsCodeEditorSQL : QgsCodeEditor
%End
public:
QgsCodeEditorSQL( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCodeEditorSQL
%End

};

@@ -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
@@ -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,
@@ -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 );
};
@@ -295,7 +295,8 @@ Sets the expression string for the widget
%End

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


};

@@ -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
@@ -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
@@ -30,6 +30,9 @@ class QgsMessageBar: QFrame
};

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

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

0 comments on commit a15b54d

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