void WizardPageEnvOptions::initializePage() { mVc2013Enabled = mParent->getWizardPageMain()->isVc2013Selected(); mVc2013WinRtEnabled = mParent->getWizardPageMain()->isVc2013WinrtSelected(); recursiveEnable( ui->vc2013Layout, mVc2013Enabled ); recursiveEnable( ui->vc2013WinRtLayout, mVc2013WinRtEnabled ); }
void QQmlValueTypeProxyBinding::recursiveEnable(QQmlAbstractBinding *b, QQmlPropertyPrivate::WriteFlags flags) { if (!b) return; recursiveEnable(b->nextBinding(), flags); if (b) b->setEnabled(true, flags); }
void WizardPageEnvOptions::recursiveEnable( QLayout *layout, bool enable ) { int numChildren = layout->count(); for( int c = 0; c < numChildren; ++c ) { QLayoutItem *item = layout->itemAt( c ); if( item->layout() ) recursiveEnable( item->layout(), enable ); else if( item->widget() ) item->widget()->setEnabled( enable ); } }
void QDeclarativeValueTypeProxyBinding::recursiveEnable(QDeclarativeAbstractBinding *b, QDeclarativePropertyPrivate::WriteFlags flags) { if (!b) return; QDeclarativeAbstractBinding *next = b->m_nextBinding; b->m_prevBinding = 0; b->m_nextBinding = 0; Q_ASSERT(b->m_mePtr == 0); b->m_mePtr = &b; recursiveEnable(next, flags); if (b) b->setEnabled(true, flags); }
void QDeclarativeValueTypeProxyBinding::setEnabled(bool e, QDeclarativePropertyPrivate::WriteFlags flags) { if (e) { addToObject(m_object); QDeclarativeAbstractBinding *bindings = m_bindings; m_bindings = 0; recursiveEnable(bindings, flags); } else { removeFromObject(); QDeclarativeAbstractBinding *bindings = m_bindings; m_bindings = 0; recursiveDisable(bindings); } }