QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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;
64 void QgsListWidgetWrapper::updateValues(
const QVariant &value,
const QVariantList & )
72 if ( !mWidget )
return QVariant( type );
73 if ( type == QVariant::StringList )
76 const QVariantList list = mWidget->
list();
77 for ( QVariantList::const_iterator it = list.constBegin(); it != list.constEnd(); ++it )
78 result.append( it->toString() );
82 return QVariant( mWidget->
list() );
85 void QgsListWidgetWrapper::onValueChanged()
90 void QgsListWidgetWrapper::updateConstraintWidgetStatus()
Represents a vector layer which manages a vector based data sets.