mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
More sip bindings
This commit is contained in:
parent
4d679511fb
commit
e76949b2a0
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user