CMakePM: Use UNINITIALIZED for -D<var>=<val> in Batch Edit

CMake is setting the UNINITIALIZED type if you forget to set the
type of a variable when you do it from command line.

Qt Creator was setting INTERNAL, which had the effect of not
being displayed in the UI at all, giving the impression that the
value has been dropped.

Change-Id: I9a6b487bf5062d288365938fd7ef99b49de42884
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Cristian Adam
2021-03-03 18:07:56 +01:00
parent ffb19f9acf
commit 6fa671b329
4 changed files with 13 additions and 6 deletions

View File

@@ -519,7 +519,7 @@ void CMakeBuildSettingsWidget::updateButtonState()
break;
case CMakeProjectManager::ConfigModel::DataItem::UNKNOWN:
default:
ni.type = CMakeConfigItem::INTERNAL;
ni.type = CMakeConfigItem::UNINITIALIZED;
break;
}
return ni;