43   QHash<const char *, int> map = QHash<const char *, int>();
    44   map.insert( QCheckBox::staticMetaObject.className(), 10 );
    45   map.insert( QGroupBox::staticMetaObject.className(), 10 );
    52   return type == QVariant::Bool ? 20 : 5;
 
QgsFields fields() const FINAL
Returns the list of fields of this layer. 
 
Represents a vector layer which manages a vector based data sets. 
 
QgsField field(int fieldIdx) const
Gets field at particular index (must be in range 0..N-1)