27 , mPyFunctionName( function )
28 , mPyFormVarName( pyFormName )
30 static int sLayerCounter = 0;
31 mPyLayerVarName =
QString(
"_qgis_layer_%1_%2" ).
arg( form->
layer()->
id() ).arg( sLayerCounter++ );
34 QString initLayer =
QString(
"%1 = sip.wrapinstance( %2, qgis.core.QgsVectorLayer )" )
35 .
arg( mPyLayerVarName )
36 .
arg((
unsigned long ) form->
layer() );
62 QString initFeature =
QString(
"%1 = sip.wrapinstance( %2, qgis.core.QgsFeature )" )
63 .
arg( pyFeatureVarName )
69 .
arg( mPyFunctionName,
QString toString(Qt::DateFormat format) const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString id() const
Get this layer's unique ID, this ID is used to access this layer from map layer registry.
QString & replace(int position, int n, QChar after)
QDateTime currentDateTime()
static bool run(const QString &command, const QString &messageOnError=QString())
Execute a python statement.
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
T findChild(const QString &name) const