@@ -619,8 +619,10 @@ class QgsVectorLayer : QgsMapLayer
619
619
bool commitChanges();
620
620
const QStringList &commitErrors();
621
621
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 );
624
626
625
627
/**get edit type*/
626
628
EditType editType( int idx );
@@ -672,10 +674,25 @@ class QgsVectorLayer : QgsMapLayer
672
674
**/
673
675
ValueRelationData &valueRelation( int idx );
674
676
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
+
675
692
/**Adds a new overlay to this class. QgsVectorLayer takes ownership of the object
676
693
@note this method was added in version 1.1
677
694
*/
678
- void addOverlay( QgsVectorOverlay* overlay /Transfer/);
695
+ void addOverlay( QgsVectorOverlay* overlay /Transfer/ );
679
696
680
697
/**Removes all overlays of a given type
681
698
@note this method was added in version 1.1
@@ -685,7 +702,7 @@ class QgsVectorLayer : QgsMapLayer
685
702
/**Returns pointers to the overlays of this layer
686
703
@note this method was added in version 1.1
687
704
*/
688
- void vectorOverlays( QList<QgsVectorOverlay*>& overlayList /Out/);
705
+ void vectorOverlays( QList<QgsVectorOverlay*>& overlayList /Out/ );
689
706
690
707
/**Returns the (first) overlay of a type, e.g. diagram or label
691
708
@note this method was added in version 1.1
0 commit comments