22#include "moc_qgscolorwidgetwrapper.cpp"
35 c = mColorButton->color();
50 QWidget *container =
new QWidget( parent );
51 QHBoxLayout *layout =
new QHBoxLayout();
52 container->setLayout( layout );
53 layout->setContentsMargins( 0, 0, 0, 0 );
55 button->
setContext( QStringLiteral(
"editor" ) );
56 layout->addWidget( button );
58 container->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
64 mColorButton = qobject_cast<QgsColorButton *>( editor );
70 mColorButton->setShowNull(
true );
79void QgsColorWidgetWrapper::updateValues(
const QVariant &value,
const QVariantList & )
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 dataset.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.