Skip to content

Commit fe6b4ad

Browse files
committedMar 20, 2013
update vector layer sip bindings
1 parent 9672d1f commit fe6b4ad

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed
 

‎python/core/qgsvectorlayer.sip

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,10 @@ class QgsVectorLayer : QgsMapLayer
619619
bool commitChanges();
620620
const QStringList &commitErrors();
621621

622-
/** Stop editing and discard the edits */
623-
bool rollBack();
622+
/** Stop editing and discard the edits
623+
* @param deleteBuffer whether to delete editing buffer (added in 1.9)
624+
*/
625+
bool rollBack( bool deleteBuffer = true );
624626

625627
/**get edit type*/
626628
EditType editType( int idx );
@@ -672,10 +674,25 @@ class QgsVectorLayer : QgsMapLayer
672674
**/
673675
ValueRelationData &valueRelation( int idx );
674676

677+
/**access date format
678+
* @note added in 1.9
679+
*/
680+
QString &dateFormat( int idx );
681+
682+
/**is edit widget editable
683+
* @note added in 1.9
684+
**/
685+
bool fieldEditable( int idx );
686+
687+
/**set edit widget editable
688+
* @note added in 1.9
689+
**/
690+
void setFieldEditable( int idx, bool editable );
691+
675692
/**Adds a new overlay to this class. QgsVectorLayer takes ownership of the object
676693
@note this method was added in version 1.1
677694
*/
678-
void addOverlay( QgsVectorOverlay* overlay /Transfer/);
695+
void addOverlay( QgsVectorOverlay* overlay /Transfer/ );
679696

680697
/**Removes all overlays of a given type
681698
@note this method was added in version 1.1
@@ -685,7 +702,7 @@ class QgsVectorLayer : QgsMapLayer
685702
/**Returns pointers to the overlays of this layer
686703
@note this method was added in version 1.1
687704
*/
688-
void vectorOverlays( QList<QgsVectorOverlay*>& overlayList /Out/);
705+
void vectorOverlays( QList<QgsVectorOverlay*>& overlayList /Out/ );
689706

690707
/**Returns the (first) overlay of a type, e.g. diagram or label
691708
@note this method was added in version 1.1

‎src/core/qgsvectorlayer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,6 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
760760
**/
761761
void setFieldEditable( int idx, bool editable );
762762

763-
764763
/**Adds a new overlay to this class. QgsVectorLayer takes ownership of the object
765764
@note this method was added in version 1.1
766765
*/

0 commit comments

Comments
 (0)
Please sign in to comment.