forked from qt-creator/qt-creator
QmakeProjectImporter: Prepare for multiple concurrent imports
Fix logic around temporary qt versions. We want essentially shared ownership of kits on the temporary qt version. Change-Id: Ic8c748aa2b04afb5a30444563b3fc2f4272ca47c Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -477,6 +477,25 @@ void Kit::setValue(Id key, const QVariant &value)
|
||||
kitUpdated();
|
||||
}
|
||||
|
||||
/// \internal
|
||||
void Kit::setValueSilently(Id key, const QVariant &value)
|
||||
{
|
||||
if (d->m_data.value(key) == value)
|
||||
return;
|
||||
d->m_data.insert(key, value);
|
||||
}
|
||||
|
||||
/// \internal
|
||||
void Kit::removeKeySilently(Id key)
|
||||
{
|
||||
if (!d->m_data.contains(key))
|
||||
return;
|
||||
d->m_data.remove(key);
|
||||
d->m_sticky.remove(key);
|
||||
d->m_mutable.remove(key);
|
||||
}
|
||||
|
||||
|
||||
void Kit::removeKey(Id key)
|
||||
{
|
||||
if (!d->m_data.contains(key))
|
||||
|
||||
Reference in New Issue
Block a user