void KItemListRubberBand::setActive(bool active) { if (m_active != active) { m_active = active; emit activationChanged(active); } }
void ContextPrivate::registerNode( QSharedPointer<fugio::NodeInterface> pNode ) { if( mNodeHash.contains( pNode->uuid() ) ) { if( NodePrivate *NP = qobject_cast<NodePrivate *>( pNode->qobject() ) ) { NP->setUuid( QUuid::createUuid() ); } } pNode->setContext( this ); mNodeHash.insert( pNode->uuid(), pNode ); fugio::NodeSignals *N = pNode->qobject(); connect( N, SIGNAL(controlChanged(QSharedPointer<fugio::NodeInterface>)), this, SLOT(nodeControlChanged(QSharedPointer<fugio::NodeInterface>)) ); connect( N, SIGNAL(nameChanged(QSharedPointer<fugio::NodeInterface>)), this, SLOT(nodeNameChanged(QSharedPointer<fugio::NodeInterface>)) ); connect( N, SIGNAL(activationChanged(QSharedPointer<fugio::NodeInterface>)), this, SLOT(onNodeActivationChanged(QSharedPointer<fugio::NodeInterface>)) ); connect( N, SIGNAL(pinAdded(QSharedPointer<fugio::NodeInterface>,QSharedPointer<fugio::PinInterface>)), this, SLOT(onPinAdded(QSharedPointer<fugio::NodeInterface>,QSharedPointer<fugio::PinInterface>)) ); connect( N, SIGNAL(pinRemoved(QSharedPointer<fugio::NodeInterface>,QSharedPointer<fugio::PinInterface>)), this, SLOT(onPinRemoved(QSharedPointer<fugio::NodeInterface>,QSharedPointer<fugio::PinInterface>)) ); addDeferredNode( pNode ); mNodeDeferProcess = true; emit nodeAdded( pNode->uuid() ); }
void DoublePicker::updateByActivationCheck(bool checked){ emit activationChanged(checked); }