47 cfg.
insert(
"AllowNull", configElement.
attribute(
"AllowNull" ) ==
"1" );
63 configElement.
setAttribute(
"Style", config[
"Style"].toString() );
64 configElement.
setAttribute(
"Min", config[
"Min"].toString() );
65 configElement.
setAttribute(
"Max", config[
"Max"].toString() );
66 configElement.
setAttribute(
"Step", config[
"Step"].toString() );
67 configElement.
setAttribute(
"AllowNull", config[
"AllowNull"].toBool() );
70 configElement.
setAttribute(
"Suffix", config[
"Suffix"].toString() );
74 bool QgsRangeWidgetFactory::isFieldSupported(
QgsVectorLayer* vl,
int fieldIdx )
78 case QVariant::LongLong:
79 case QVariant::Double:
91 map.
insert( QSlider::staticMetaObject.className(), 10 );
92 map.
insert( QDial::staticMetaObject.className(), 10 );
93 map.
insert( QSpinBox::staticMetaObject.className(), 10 );
94 map.
insert( QDoubleSpinBox::staticMetaObject.className(), 10 );
bool contains(const Key &key) const
QString attribute(const QString &name, const QString &defValue) const
QgsFields fields() const
Returns the list of fields of this layer.
bool hasAttribute(const QString &name) const
void setAttribute(const QString &name, const QString &value)
const QgsField & at(int i) const
Get field at particular index (must be in range 0..N-1)
iterator insert(const Key &key, const T &value)
Represents a vector layer which manages a vector based data sets.
QVariant::Type type() const
Gets variant type of the field as it will be retrieved from data source.