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 );
 
Encapsulate a field in an attribute table or data source.
QgsField at(int i) const
Returns the field at particular index (must be in range 0..N-1).
Represents a vector layer which manages a vector based data sets.
QgsFields fields() const FINAL
Returns the list of fields of this layer.