37 unsigned int QgsRangeWidgetFactory::fieldScore( 
const QgsVectorLayer *vl, 
int fieldIdx )
 const    40   if ( field.
type() == QVariant::Int ) 
return 20;
    41   if ( field.
type() == QVariant::Double ) 
return 5; 
    48   QHash<const char *, int> map = QHash<const char *, int>();
    49   map.insert( QSlider::staticMetaObject.className(), 10 );
    50   map.insert( QDial::staticMetaObject.className(), 10 );
    51   map.insert( QSpinBox::staticMetaObject.className(), 10 );
    52   map.insert( QDoubleSpinBox::staticMetaObject.className(), 10 );
 
QgsField at(int i) const
Gets field at particular index (must be in range 0..N-1) 
 
QgsFields fields() const FINAL
Returns the list of fields of this layer. 
 
Encapsulate a field in an attribute table or data source. 
 
Represents a vector layer which manages a vector based data sets.