31 , mMessageBar( messageBar )
45 return QVariant::fromValue( geomValue );
57 widget->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
63 mWidget = qobject_cast<QgsGeometryWidget *>( editor );
76void QgsGeometryWidgetWrapper::updateValues(
const QVariant &value,
const QVariantList & )
81 if (
value.userType() == qMetaTypeId<QgsReferencedGeometry>() )
85 else if (
value.userType() == qMetaTypeId< QgsGeometry>() )
This class represents a coordinate reference system (CRS).
A geometry is the spatial representation of a feature.
A bar for displaying non-blocking messages to the user.
A QgsGeometry with associated coordinate reference system.
static bool isNull(const QVariant &variant, bool silenceNullWarnings=false)
Returns true if the specified variant should be considered a NULL value.
static QVariant createNullVariant(QMetaType::Type metaType)
Helper method to properly create a null QVariant from a metaType Returns the created QVariant.
Represents a vector layer which manages a vector based data sets.