Skip to content
Permalink
Browse files

Added import and tabs in the example

  • Loading branch information
elpaso committed Nov 5, 2015
1 parent f810d81 commit d2da60a12c96d752ab52ddc744bbb0d1caf7edd9
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/qgsfieldsproperties.cpp
@@ -132,9 +132,10 @@ QgsFieldsProperties::QgsFieldsProperties( QgsVectorLayer *layer, QWidget* parent
"field.\n"
"An example follows:\n"
"\"\"\"\n"
"from PyQt4.QtGui import QWidget\n\n"
"def my_form_open(dialog, layer, feature):\n"
" geom = feature.geometry()\n"
" control = dialog.findChild(QWidget, \"MyLineEdit\")\n" ) );
"\tgeom = feature.geometry()\n"
"\tcontrol = dialog.findChild(QWidget, \"MyLineEdit\")\n" ) );

}
leEditFormInitCode->setText( code );

0 comments on commit d2da60a

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