17#include "moc_qgsgeometrywidgetwrapper.cpp"
33 Q_UNUSED( messageBar )
46 return QVariant::fromValue( geomValue );
58 widget->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
64 mWidget = qobject_cast<QgsGeometryWidget *>( editor );
77void QgsGeometryWidgetWrapper::updateValues(
const QVariant &value,
const QVariantList & )
82 if (
value.userType() == qMetaTypeId<QgsReferencedGeometry>() )
86 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.