Skip to content
Permalink
Browse files

More sip bindings

  • Loading branch information
m-kuhn committed Dec 1, 2015
1 parent 4d67951 commit e76949b2a0be561716d9f43c36b3f1546c6d0fe2
Showing with 21 additions and 1 deletion.
  1. +4 −1 python/core/qgstransaction.sip
  2. +14 −0 python/gui/attributetable/qgsfeaturelistmodel.sip
  3. +3 −0 src/core/qgstransaction.h
@@ -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();
};
@@ -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();

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

0 comments on commit e76949b

Please sign in to comment.
You can’t perform that action at this time.