Skip to content

Commit e76949b

Browse files
committedDec 1, 2015
More sip bindings
1 parent 4d67951 commit e76949b

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed
 

‎python/core/qgstransaction.sip

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* Edits on features can get rejected if another conflicting transaction is active.
2121
*/
22-
class QgsTransaction /Abstract/
22+
class QgsTransaction : QObject /Abstract/
2323
{
2424
%TypeHeaderCode
2525
#include <qgstransaction.h>
@@ -60,5 +60,8 @@ class QgsTransaction /Abstract/
6060
virtual bool executeSql( const QString& sql, QString& error /Out/ ) = 0;
6161

6262
signals:
63+
/**
64+
* Emitted after a rollback
65+
*/
6366
void afterRollback();
6467
};

‎python/gui/attributetable/qgsfeaturelistmodel.sip

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ class QgsFeatureListModel : QAbstractProxyModel, QgsFeatureModel
2121
virtual QVariant data( const QModelIndex& index, int role ) const;
2222
virtual Qt::ItemFlags flags( const QModelIndex& index ) const;
2323

24+
/**
25+
* @brief If true is specified, a NULL value will be injected
26+
* @param injectNull state of null value injection
27+
* @note added in 2.9
28+
*/
29+
void setInjectNull( bool injectNull );
30+
31+
/**
32+
* @brief Returns the current state of null value injection
33+
* @return If a NULL value is added
34+
* @note added in 2.9
35+
*/
36+
bool injectNull();
37+
2438
QgsAttributeTableModel* masterModel();
2539

2640
/**

‎src/core/qgstransaction.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ class CORE_EXPORT QgsTransaction : public QObject
8585
virtual bool executeSql( const QString& sql, QString& error ) = 0;
8686

8787
signals:
88+
/**
89+
* Emitted after a rollback
90+
*/
8891
void afterRollback();
8992

9093
private slots:

0 commit comments

Comments
 (0)
Please sign in to comment.