32 c = mColorButton->
color();
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->setMargin( 0 );
51 layout->setContentsMargins( 0, 0, 0, 0 );
53 button->
setContext( QStringLiteral(
"editor" ) );
54 layout->addWidget( button );
56 container->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
80 mColorButton->
setColor( !value.isNull() ? QColor( value.toString() ) : QColor() );
83 void QgsColorWidgetWrapper::updateConstraintWidgetStatus()
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.
Represents a vector layer which manages a vector based data sets.