More sip bindings

This commit is contained in:
Matthias Kuhn 2015-12-01 11:45:30 +01:00
parent 4d679511fb
commit e76949b2a0
3 changed files with 21 additions and 1 deletions

View File

@ -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>
@ -60,5 +60,8 @@ class QgsTransaction /Abstract/
virtual bool executeSql( const QString& sql, QString& error /Out/ ) = 0;
signals:
/**
* Emitted after a rollback
*/
void afterRollback();
};

View File

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

View File

@ -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: