Skip to content

Commit a15b54d

Browse files
committed
Swap missing 0->nullptr and add missing overrides
1 parent 0f26537 commit a15b54d

File tree

467 files changed

+1000
-784
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

467 files changed

+1000
-784
lines changed

python/core/composer/qgsaddremoveitemcommand.sip

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class QgsAddRemoveItemCommand: QObject, QUndoCommand
2929
};
3030

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

3437
virtual void redo();

python/core/composer/qgsaddremovemultiframecommand.sip

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class QgsAddRemoveMultiFrameCommand: QUndoCommand
2626
};
2727

2828
QgsAddRemoveMultiFrameCommand( State s, QgsComposerMultiFrame *multiFrame, QgsComposition *c, const QString &text, QUndoCommand *parent /TransferThis/ = 0 );
29+
%Docstring
30+
Constructor for QgsAddRemoveMultiFrameCommand
31+
%End
2932
~QgsAddRemoveMultiFrameCommand();
3033
virtual void redo();
3134

python/core/composer/qgscomposeritemcommand.sip

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class QgsComposerItemCommand: QUndoCommand
2222
%End
2323
public:
2424
QgsComposerItemCommand( QgsComposerItem *item, const QString &text, QUndoCommand *parent /TransferThis/ = 0 );
25+
%Docstring
26+
Constructor for QgsComposerItemCommand
27+
%End
2528

2629
virtual void undo();
2730

python/core/composer/qgscomposermultiframecommand.sip

+4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ class QgsComposerMultiFrameCommand: QUndoCommand
1818
#include "qgscomposermultiframecommand.h"
1919
%End
2020
public:
21+
2122
QgsComposerMultiFrameCommand( QgsComposerMultiFrame *multiFrame, const QString &text, QUndoCommand *parent /TransferThis/ = 0 );
23+
%Docstring
24+
Constructor for QgsComposerMultiFrameCommand
25+
%End
2226

2327
virtual void undo();
2428

python/core/geonode/qgsgeonoderequest.sip

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ class QgsGeoNodeRequest : QObject
4343
%End
4444
public:
4545

46-
explicit QgsGeoNodeRequest( bool forceRefresh, QObject *parent = 0 );
46+
explicit QgsGeoNodeRequest( bool forceRefresh, QObject *parent = nullptr );
4747
%Docstring
4848
Constructor for QgsGeoNodeRequest.
4949

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

5555
bool request( const QString &endPoint );

python/core/gps/qgsqtlocationconnection.sip

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class QgsQtLocationConnection: QgsGPSConnection
3535
Needed to make QtLocation detected
3636
%End
3737

38-
void parseData();
38+
virtual void parseData();
39+
3940
%Docstring
4041
Parse available data source content
4142
%End

python/core/qgsmaplayerlegend.sip

+4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ class QgsMapLayerLegend : QObject
2424
#include "qgsmaplayerlegend.h"
2525
%End
2626
public:
27+
2728
explicit QgsMapLayerLegend( QObject *parent /TransferThis/ = 0 );
29+
%Docstring
30+
Constructor for QgsMapLayerLegend
31+
%End
2832

2933

3034
virtual QList<QgsLayerTreeModelLegendNode *> createLayerTreeModelLegendNodes( QgsLayerTreeLayer *nodeLayer ) = 0 /Factory/;

python/core/qgssnappingutils.sip

+4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ class QgsSnappingUtils : QObject
3434
#include "qgssnappingutils.h"
3535
%End
3636
public:
37+
3738
QgsSnappingUtils( QObject *parent /TransferThis/ = 0 );
39+
%Docstring
40+
Constructor for QgsSnappingUtils
41+
%End
3842
~QgsSnappingUtils();
3943

4044

python/core/qgstransactiongroup.sip

+4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ class QgsTransactionGroup : QObject
1515
#include "qgstransactiongroup.h"
1616
%End
1717
public:
18+
1819
explicit QgsTransactionGroup( QObject *parent = 0 );
20+
%Docstring
21+
Constructor for QgsTransactionGroup
22+
%End
1923

2024
bool addLayer( QgsVectorLayer *layer );
2125
%Docstring

python/gui/attributetable/qgsattributetableview.sip

+4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ class QgsAttributeTableView : QTableView
2525
#include "qgsattributetableview.h"
2626
%End
2727
public:
28+
2829
QgsAttributeTableView( QWidget *parent /TransferThis/ = 0 );
30+
%Docstring
31+
Constructor for QgsAttributeTableView
32+
%End
2933

3034
virtual void setModel( QgsAttributeTableFilterModel *filterModel );
3135

python/gui/attributetable/qgsfeaturelistmodel.sip

+4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ class QgsFeatureListModel : QAbstractProxyModel, QgsFeatureModel
3737
};
3838

3939
public:
40+
4041
explicit QgsFeatureListModel( QgsAttributeTableFilterModel *sourceModel, QObject *parent /TransferThis/ = 0 );
42+
%Docstring
43+
Constructor for QgsFeatureListModel
44+
%End
4145

4246
virtual void setSourceModel( QgsAttributeTableFilterModel *sourceModel );
4347
QgsVectorLayerCache *layerCache();

python/gui/auth/qgsauthcertificateinfo.sip

+4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ class QgsAuthCertInfo : QWidget
2121
#include "qgsauthcertificateinfo.h"
2222
%End
2323
public:
24+
2425
explicit QgsAuthCertInfo( const QSslCertificate &cert,
2526
bool manageCertTrust = false,
2627
QWidget *parent /TransferThis/ = 0,
2728
const QList<QSslCertificate> &connectionCAs = QList<QSslCertificate>() );
29+
%Docstring
30+
Constructor for QgsAuthCertInfo
31+
%End
2832

2933
bool trustCacheRebuilt();
3034
%Docstring

python/gui/editorwidgets/qgsdatetimeedit.sip

+4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ class QgsDateTimeEdit : QDateTimeEdit
1919
#include "qgsdatetimeedit.h"
2020
%End
2121
public:
22+
2223
explicit QgsDateTimeEdit( QWidget *parent /TransferThis/ = 0 );
24+
%Docstring
25+
Constructor for QgsDateTimeEdit
26+
%End
2327

2428
void setAllowNull( bool allowNull );
2529
%Docstring

python/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.sip

+4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ class QgsDefaultSearchWidgetWrapper : QgsSearchWidgetWrapper
2020
#include "qgsdefaultsearchwidgetwrapper.h"
2121
%End
2222
public:
23+
2324
explicit QgsDefaultSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
25+
%Docstring
26+
Constructor for QgsDefaultSearchWidgetWrapper
27+
%End
2428

2529
public:
2630
virtual QString expression() const;

python/gui/editorwidgets/qgsrelationreferencewidgetwrapper.sip

+4
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ class QgsRelationReferenceWidgetWrapper : QgsEditorWidgetWrapper
3030
#include "qgsrelationreferencewidgetwrapper.h"
3131
%End
3232
public:
33+
3334
explicit QgsRelationReferenceWidgetWrapper( QgsVectorLayer *vl,
3435
int fieldIdx,
3536
QWidget *editor,
3637
QgsMapCanvas *canvas,
3738
QgsMessageBar *messageBar,
3839
QWidget *parent /TransferThis/ = 0 );
40+
%Docstring
41+
Constructor for QgsRelationReferenceWidgetWrapper
42+
%End
3943

4044
virtual QWidget *createWidget( QWidget *parent );
4145
virtual void initWidget( QWidget *editor );

python/gui/editorwidgets/qgsrelationwidgetwrapper.sip

+4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ class QgsRelationWidgetWrapper : QgsWidgetWrapper
2222
#include "qgsrelationwidgetwrapper.h"
2323
%End
2424
public:
25+
2526
explicit QgsRelationWidgetWrapper( QgsVectorLayer *vl, const QgsRelation &relation, QWidget *editor = 0, QWidget *parent /TransferThis/ = 0 );
27+
%Docstring
28+
Constructor for QgsRelationWidgetWrapper
29+
%End
2630

2731
bool showLabel() const;
2832
%Docstring

python/gui/editorwidgets/qgsvaluemapsearchwidgetwrapper.sip

+4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class QgsValueMapSearchWidgetWrapper : QgsSearchWidgetWrapper
2121
#include "qgsvaluemapsearchwidgetwrapper.h"
2222
%End
2323
public:
24+
2425
explicit QgsValueMapSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
26+
%Docstring
27+
Constructor for QgsValueMapSearchWidgetWrapper
28+
%End
2529
virtual bool applyDirectly();
2630

2731
virtual QString expression() const;

python/gui/editorwidgets/qgsvaluerelationsearchwidgetwrapper.sip

+4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ class QgsValueRelationSearchWidgetWrapper : QgsSearchWidgetWrapper
2323
#include "qgsvaluerelationsearchwidgetwrapper.h"
2424
%End
2525
public:
26+
2627
explicit QgsValueRelationSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
28+
%Docstring
29+
Constructor for QgsValueRelationSearchWidgetWrapper
30+
%End
2731
virtual bool applyDirectly();
2832

2933
virtual QString expression() const;

python/gui/layertree/qgscustomlayerorderwidget.sip

+4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ class QgsCustomLayerOrderWidget : QWidget
2727
#include "qgscustomlayerorderwidget.h"
2828
%End
2929
public:
30+
3031
explicit QgsCustomLayerOrderWidget( QgsLayerTreeMapCanvasBridge *bridge, QWidget *parent /TransferThis/ = 0 );
32+
%Docstring
33+
Constructor for QgsCustomLayerOrderWidget
34+
%End
3135

3236
signals:
3337

python/gui/layertree/qgslayertreeview.sip

+4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ class QgsLayerTreeView : QTreeView
3737
sipType = 0;
3838
%End
3939
public:
40+
4041
explicit QgsLayerTreeView( QWidget *parent /TransferThis/ = 0 );
42+
%Docstring
43+
Constructor for QgsLayerTreeView
44+
%End
4145
~QgsLayerTreeView();
4246

4347
virtual void setModel( QAbstractItemModel *model );

python/gui/locator/qgslocatorfilter.sip

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class QgsLocatorFilter : QObject
8585
Lowest
8686
};
8787

88-
QgsLocatorFilter( QObject *parent = 0 );
88+
QgsLocatorFilter( QObject *parent = nullptr );
8989
%Docstring
9090
Constructor for QgsLocatorFilter.
9191
%End
@@ -193,7 +193,7 @@ class QgsLocatorFilter : QObject
193193
:rtype: bool
194194
%End
195195

196-
virtual void openConfigWidget( QWidget *parent = 0 );
196+
virtual void openConfigWidget( QWidget *parent = nullptr );
197197
%Docstring
198198
Opens the configuration widget for the filter (if it has one), with the specified ``parent`` widget.
199199
The base class implementation does nothing. Subclasses can override this to show their own

python/gui/qgsblendmodecombobox.sip

+4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ class QgsBlendModeComboBox : QComboBox
2020
#include "qgsblendmodecombobox.h"
2121
%End
2222
public:
23+
2324
QgsBlendModeComboBox( QWidget *parent /TransferThis/ = 0 );
25+
%Docstring
26+
Constructor for QgsBlendModeComboBox
27+
%End
2428

2529
QPainter::CompositionMode blendMode();
2630
%Docstring

python/gui/qgsbrowsertreeview.sip

+4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ class QgsBrowserTreeView : QTreeView
2222
#include "qgsbrowsertreeview.h"
2323
%End
2424
public:
25+
2526
QgsBrowserTreeView( QWidget *parent /TransferThis/ = 0 );
27+
%Docstring
28+
Constructor for QgsBrowserTreeView
29+
%End
2630

2731
virtual void setModel( QAbstractItemModel *model );
2832
void setBrowserModel( QgsBrowserModel *model );

python/gui/qgscodeeditorcss.sip

+4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ class QgsCodeEditorCSS : QgsCodeEditor
2222
#include "qgscodeeditorcss.h"
2323
%End
2424
public:
25+
2526
QgsCodeEditorCSS( QWidget *parent /TransferThis/ = 0 );
27+
%Docstring
28+
Constructor for QgsCodeEditorCSS
29+
%End
2630

2731
};
2832

python/gui/qgscodeeditorhtml.sip

+4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ class QgsCodeEditorHTML : QgsCodeEditor
2424
#include "qgscodeeditorhtml.h"
2525
%End
2626
public:
27+
2728
QgsCodeEditorHTML( QWidget *parent /TransferThis/ = 0 );
29+
%Docstring
30+
Constructor for QgsCodeEditorHTML
31+
%End
2832

2933
};
3034

python/gui/qgscodeeditorsql.sip

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class QgsCodeEditorSQL : QgsCodeEditor
2525
%End
2626
public:
2727
QgsCodeEditorSQL( QWidget *parent /TransferThis/ = 0 );
28+
%Docstring
29+
Constructor for QgsCodeEditorSQL
30+
%End
2831

2932
};
3033

python/gui/qgscomposerview.sip

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class QgsComposerView: QGraphicsView
7373
};
7474

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

7780
void groupItems();
7881
%Docstring

python/gui/qgsdetaileditemdelegate.sip

+4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class QgsDetailedItemDelegate : QAbstractItemDelegate
2121
#include "qgsdetaileditemdelegate.h"
2222
%End
2323
public:
24+
2425
QgsDetailedItemDelegate( QObject *parent /TransferThis/ = 0 );
26+
%Docstring
27+
Constructor for QgsDetailedItemDelegate
28+
%End
2529
~QgsDetailedItemDelegate();
2630
virtual void paint( QPainter *painter,
2731
const QStyleOptionViewItem &option,

python/gui/qgsdetaileditemwidget.sip

+4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ class QgsDetailedItemWidget : QWidget
1919
#include "qgsdetaileditemwidget.h"
2020
%End
2121
public:
22+
2223
QgsDetailedItemWidget( QWidget *parent /TransferThis/ = 0 );
24+
%Docstring
25+
Constructor for QgsDetailedItemWidget
26+
%End
2327
void setData( const QgsDetailedItemData &data );
2428
void setChecked( bool flag );
2529
};

python/gui/qgsexpressionbuilderwidget.sip

+2-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ Sets the expression string for the widget
295295
%End
296296

297297
protected:
298-
void showEvent( QShowEvent *e );
298+
virtual void showEvent( QShowEvent *e );
299+
299300

300301
};
301302

python/gui/qgsfeatureselectiondlg.sip

+4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ class QgsFeatureSelectionDlg : QDialog
2828
sipType = 0;
2929
%End
3030
public:
31+
3132
explicit QgsFeatureSelectionDlg( QgsVectorLayer *vl, QgsAttributeEditorContext &context, QWidget *parent /TransferThis/ = 0 );
33+
%Docstring
34+
Constructor for QgsFeatureSelectionDlg
35+
%End
3236

3337
const QgsFeatureIds &selectedFeatures();
3438
%Docstring

python/gui/qgsmapcanvastracer.sip

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Report a path finding error to the user
6161

6262
protected:
6363
virtual void configure();
64+
6465
%Docstring
6566
Sets configuration from current snapping settings and canvas settings
6667
%End

python/gui/qgsmessagebar.sip

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class QgsMessageBar: QFrame
3030
};
3131

3232
QgsMessageBar( QWidget *parent /TransferThis/ = 0 );
33+
%Docstring
34+
Constructor for QgsMessageBar
35+
%End
3336

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

0 commit comments

Comments
 (0)