23#include "moc_qgscolorwidgetwrapper.cpp"
25using namespace Qt::StringLiterals;
38 c = mColorButton->color();
53 QWidget *container =
new QWidget( parent );
54 QHBoxLayout *layout =
new QHBoxLayout();
55 container->setLayout( layout );
56 layout->setContentsMargins( 0, 0, 0, 0 );
59 layout->addWidget( button );
61 container->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
67 mColorButton = qobject_cast<QgsColorButton *>( editor );
73 mColorButton->setShowNull(
true );
82void 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.