Skip to content

Commit

Permalink
More sip bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Dec 1, 2015
1 parent 4d67951 commit e76949b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/core/qgstransaction.sip
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* Edits on features can get rejected if another conflicting transaction is active.
*/
class QgsTransaction /Abstract/
class QgsTransaction : QObject /Abstract/
{
%TypeHeaderCode
#include <qgstransaction.h>
Expand Down Expand Up @@ -60,5 +60,8 @@ class QgsTransaction /Abstract/
virtual bool executeSql( const QString& sql, QString& error /Out/ ) = 0;

signals:
/**
* Emitted after a rollback
*/
void afterRollback();
};
14 changes: 14 additions & 0 deletions python/gui/attributetable/qgsfeaturelistmodel.sip
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ class QgsFeatureListModel : QAbstractProxyModel, QgsFeatureModel
virtual QVariant data( const QModelIndex& index, int role ) const;
virtual Qt::ItemFlags flags( const QModelIndex& index ) const;

/**
* @brief If true is specified, a NULL value will be injected
* @param injectNull state of null value injection
* @note added in 2.9
*/
void setInjectNull( bool injectNull );

/**
* @brief Returns the current state of null value injection
* @return If a NULL value is added
* @note added in 2.9
*/
bool injectNull();

QgsAttributeTableModel* masterModel();

/**
Expand Down
3 changes: 3 additions & 0 deletions src/core/qgstransaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ class CORE_EXPORT QgsTransaction : public QObject
virtual bool executeSql( const QString& sql, QString& error ) = 0;

signals:
/**
* Emitted after a rollback
*/
void afterRollback();

private slots:
Expand Down

0 comments on commit e76949b

Please sign in to comment.