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()
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.