Skip to content

Commit 3c71498

Browse files
committed
Add some missing /TransferThis/ to sip bindings for QObject parents
1 parent f301cb8 commit 3c71498

83 files changed

Lines changed: 114 additions & 114 deletions

File tree

Some content is hidden

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

python/core/composer/qgscomposermodel.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class QgsComposerModel : QAbstractItemModel
2727
* @param composition composition to attach to
2828
* @param parent parent object
2929
*/
30-
explicit QgsComposerModel( QgsComposition* composition, QObject* parent = 0 );
30+
explicit QgsComposerModel( QgsComposition* composition, QObject* parent /TransferThis/ = 0 );
3131

3232
~QgsComposerModel();
3333

python/core/qgsdataitem.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class QgsDirectoryParamWidget : QTreeWidget
286286
#include <qgsdataitem.h>
287287
%End
288288
public:
289-
QgsDirectoryParamWidget( QString path, QWidget* parent = NULL );
289+
QgsDirectoryParamWidget( QString path, QWidget* parent /TransferThis/ = NULL );
290290

291291
protected:
292292
void mousePressEvent( QMouseEvent* event );

python/core/qgsdbfilterproxymodel.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class QgsDbFilterProxyModel: QSortFilterProxyModel
44
#include <qgsdbfilterproxymodel.h>
55
%End
66
public:
7-
QgsDbFilterProxyModel( QObject* parent = 0 );
7+
QgsDbFilterProxyModel( QObject* parent /TransferThis/ = 0 );
88
~QgsDbFilterProxyModel();
99
/**Calls QSortFilterProxyModel::setFilterWildcard and triggers update*/
1010
void _setFilterWildcard( const QString& pattern );

python/core/qgsvectorlayercache.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class QgsVectorLayerCache : QObject
1414
%End
1515

1616
public:
17-
QgsVectorLayerCache( QgsVectorLayer* layer, int cacheSize, QObject* parent = NULL );
17+
QgsVectorLayerCache( QgsVectorLayer* layer, int cacheSize, QObject* parent /TransferThis/ = NULL );
1818

1919
/**
2020
* Sets the maximum number of features to keep in the cache. Some features will be removed from

python/core/symbology-ng/qgscptcityarchive.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class QgsCptCityBrowserModel : QAbstractItemModel
260260
List // not used anymore
261261
};
262262

263-
QgsCptCityBrowserModel( QObject* parent = 0,
263+
QgsCptCityBrowserModel( QObject* parent /TransferThis/ = 0,
264264
QgsCptCityArchive* archive = QgsCptCityArchive::defaultArchive(),
265265
ViewType Type = Authors );
266266
~QgsCptCityBrowserModel();

python/core/symbology-ng/qgssvgcache.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class QgsSvgCache : QObject
9393

9494
protected:
9595
//! protected constructor
96-
QgsSvgCache( QObject * parent = 0 );
96+
QgsSvgCache( QObject * parent /TransferThis/ = 0 );
9797

9898
/**Creates new cache entry and returns pointer to it
9999
* @param file Absolute or relative path to SVG file. If the path is relative the file is searched by QgsSymbolLayerV2Utils::symbolNameToPath() in SVG paths.

python/gui/attributetable/qgsattributetabledelegate.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class QgsAttributeTableDelegate : QItemDelegate
99
/** Constructor
1010
* @param parent parent object
1111
*/
12-
QgsAttributeTableDelegate( QObject* parent = 0 );
12+
QgsAttributeTableDelegate( QObject* parent /TransferThis/ = 0 );
1313
/** Used to create an editor for when the user tries to
1414
* change the contents of a cell */
1515
QWidget * createEditor(

python/gui/attributetable/qgsattributetablefiltermodel.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class QgsAttributeTableFilterModel: QSortFilterProxyModel, QgsFeatureModel
2121
* @param sourceModel The QgsAttributeTableModel to use as source (mostly referred to as master model)
2222
* @param canvas The mapCanvas. Used to identify the currently visible features.
2323
*/
24-
QgsAttributeTableFilterModel( QgsMapCanvas* canvas, QgsAttributeTableModel* sourceModel, QObject* parent = 0 );
24+
QgsAttributeTableFilterModel( QgsMapCanvas* canvas, QgsAttributeTableModel* sourceModel, QObject* parent /TransferThis/ = 0 );
2525

2626
void setSourceModel( QgsAttributeTableModel* sourceModel );
2727

python/gui/attributetable/qgsattributetableview.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class QgsAttributeTableView : QTableView
55
%End
66

77
public:
8-
QgsAttributeTableView( QWidget* parent = 0 );
8+
QgsAttributeTableView( QWidget* parent /TransferThis/ = 0 );
99
virtual ~QgsAttributeTableView();
1010

1111
virtual void setModel( QgsAttributeTableFilterModel* filterModel );

python/gui/attributetable/qgsdualview.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class QgsDualView : QStackedWidget
2929
* @brief Constructor
3030
* @param parent The parent widget
3131
*/
32-
explicit QgsDualView( QWidget* parent = 0 );
32+
explicit QgsDualView( QWidget* parent /TransferThis/ = 0 );
3333
virtual ~QgsDualView();
3434

3535
/**

0 commit comments

Comments
 (0)