Check for known model so mapping component can check without loaded model set

This commit is contained in:
Klaus Basan
2018-09-11 03:44:03 +02:00
parent 7613ec9219
commit e1ffa49268
7 changed files with 35 additions and 2 deletions

View File

@@ -247,6 +247,13 @@ namespace BlackCore
return this->getModelSet().getModelStringList(false);
}
bool CContextSimulator::isKnownModel(const QString &modelString) const
{
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
const bool known = this->getModelSet().containsModelString(modelString);
return known;
}
QStringList CContextSimulator::getModelSetCompleterStrings(bool sorted) const
{
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << sorted; }