本文整理汇总了C++中TKey::disableKey方法的典型用法代码示例。如果您正苦于以下问题:C++ TKey::disableKey方法的具体用法?C++ TKey::disableKey怎么用?C++ TKey::disableKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TKey
的用法示例。
在下文中一共展示了TKey::disableKey方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: disableKey
void TKey::disableKey(const QString & name )
{
if( mName == name )
{
setIsActive( false );
}
for(auto it = mpMyChildrenList->begin(); it != mpMyChildrenList->end(); it++)
{
TKey * pChild = *it;
pChild->disableKey( name );
}
}
示例2: disableKey
bool KeyUnit::disableKey( QString & name )
{
bool found = false;
QMutexLocker locker(& mKeyUnitLock);
typedef list<TKey *>::const_iterator I;
for( I it = mKeyRootNodeList.begin(); it != mKeyRootNodeList.end(); it++)
{
TKey * pChild = *it;
pChild->disableKey( name );
found = true;
}
return found;
}
示例3: disableKey
void TKey::disableKey( QString & name )
{
if( mName == name )
{
setIsActive( false );
}
typedef list<TKey *>::const_iterator I;
for( I it = mpMyChildrenList->begin(); it != mpMyChildrenList->end(); it++)
{
TKey * pChild = *it;
pChild->disableKey( name );
}
}
示例4: disableKey
bool KeyUnit::disableKey(const QString& name)
{
bool found = false;
QMap<QString, TKey*>::const_iterator it = mLookupTable.constFind(name);
while (it != mLookupTable.cend() && it.key() == name) {
TKey* pT = it.value();
// Unlike the TTriggerUnit version of this code we directly clear
// the mActive flag (and it shows up in the editor) rather than the
// mUserActiveState one (which does not)
// So do not use pT->setIsActive(false) here:
pT->disableKey(name);
++it;
found = true;
}
return found;
}