Skip to content

Commit d218d0a

Browse files
committed
Add python bindings for setEditorLayout
1 parent 7db8601 commit d218d0a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

python/core/qgsvectorlayer.sip

+13
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ class QgsVectorLayer : QgsMapLayer
7373
UuidGenerator, /* uuid generator - readonly and automatically intialized @added in 1.9 */
7474
};
7575

76+
enum EditorLayout
77+
{
78+
GeneratedLayout,
79+
TabLayout,
80+
UiFileLayout,
81+
};
82+
7683
struct RangeData
7784
{
7885
RangeData();
@@ -569,6 +576,12 @@ class QgsVectorLayer : QgsMapLayer
569576
/**set edit type*/
570577
void setEditType( int idx, EditType edit );
571578

579+
/**get editor layout**/
580+
EditorLayout editorLayout();
581+
582+
/**set editor layout*/
583+
void setEditorLayout( EditorLayout layout );
584+
572585
/** set string representing 'true' for a checkbox (added in 1.4) */
573586
void setCheckedState( int idx, QString checked, QString notChecked );
574587

0 commit comments

Comments
 (0)