34 return c.isValid() ? QVariant(
c ) : QVariant( QVariant::Color );
47 QWidget *container =
new QWidget( parent );
48 QHBoxLayout *layout =
new QHBoxLayout();
49 container->setLayout( layout );
50 layout->setContentsMargins( 0, 0, 0, 0 );
52 button->
setContext( QStringLiteral(
"editor" ) );
53 layout->addWidget( button );
55 container->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
61 mColorButton = qobject_cast<QgsColorButton *>( editor );
76 void QgsColorWidgetWrapper::updateValues(
const QVariant &value,
const QVariantList & )
82 void QgsColorWidgetWrapper::updateConstraintWidgetStatus()
Represents a vector layer which manages a vector based data sets.
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.