void KnobGuiColor::connectKnobSignalSlots() { KnobColorPtr knob = _knob.lock(); QObject::connect( this, SIGNAL(dimensionSwitchToggled(bool)), knob.get(), SLOT(onDimensionSwitchToggled(bool)) ); QObject::connect( knob.get(), SIGNAL(mustActivateAllDimensions()), this, SLOT(onMustShowAllDimension()) ); QObject::connect( knob.get(), SIGNAL(pickingEnabled(bool)), this, SLOT(setPickingEnabled(bool)) ); }
void KnobGuiColor::connectKnobSignalSlots() { KnobColorPtr knob = _knob.lock(); if (!knob) { return; } QObject::connect( knob.get(), SIGNAL(pickingEnabled(ViewSetSpec,bool)), this, SLOT(onInternalKnobPickingEnabled(ViewSetSpec,bool)) ); }