30     return QUuid::createUuid().toString();
 
   35     return QUuid::createUuid().toString().replace( 
'-', QString() ).mid( 1, maxLength );
 
   44     v = mLineEdit->text();
 
   53   return new QLineEdit( parent );
 
   58   mLineEdit = qobject_cast<QLineEdit *>( editor );
 
   59   mLabel = qobject_cast<QLabel *>( editor );
 
   61     mLineEdit->setEnabled( 
false );
 
   66   return mLineEdit || mLabel;
 
   69 void QgsUuidWidgetWrapper::updateValues( 
const QVariant &value, 
const QVariantList & )
 
   74     if ( 
field().type() == QVariant::String && 
field().length() > 0 )
 
   80       mLineEdit->setText( uuid );
 
   82       mLabel->setText( uuid );
 
   89       mLineEdit->setText( 
value.toString() );
 
   91       mLabel->setText( 
value.toString() );
 
Represents a vector layer which manages a vector based data sets.