37unsigned int QgsRangeWidgetFactory::fieldScore(
const QgsVectorLayer *vl,
int fieldIdx )
const
40 if ( field.
type() == QMetaType::Type::Int )
42 if ( field.
type() == QMetaType::Type::Double )
51 QHash<const char *, int> map = QHash<const char *, int>();
52 map.insert( QSlider::staticMetaObject.className(), 10 );
53 map.insert( QDial::staticMetaObject.className(), 10 );
54 map.insert( QSpinBox::staticMetaObject.className(), 10 );
55 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.