27 mWidget->
setList( QVariantList() );
35 QFrame *ret =
new QFrame( parent );
36 ret->setFrameShape( QFrame::StyledPanel );
37 QHBoxLayout *layout =
new QHBoxLayout( ret );
39 ret->setMinimumSize( QSize( 320, 110 ) );
50 mWidget = qobject_cast<QgsListWidget *>( editor );
61 return mWidget ? mWidget->
valid() :
true;
64void QgsListWidgetWrapper::updateValues(
const QVariant &value,
const QVariantList & )
71 const QVariant::Type type =
field().
type();
72 if ( !mWidget )
return QVariant( type );
73 const QVariantList list = mWidget->
list();
74 if ( list.size() == 0 &&
config( QStringLiteral(
"EmptyIsNull" ) ).toBool() )
78 if ( type == QVariant::StringList )
81 for ( QVariantList::const_iterator it = list.constBegin(); it != list.constEnd(); ++it )
82 result.append( it->toString() );
91void QgsListWidgetWrapper::onValueChanged()
96void QgsListWidgetWrapper::updateConstraintWidgetStatus()
Represents a vector layer which manages a vector based data sets.