refs #768, return DB keys as set

This commit is contained in:
Klaus Basan
2016-10-17 03:02:06 +02:00
parent 7d8f5f689f
commit 4c6bb6e3fd
8 changed files with 18 additions and 17 deletions

View File

@@ -128,9 +128,9 @@ namespace BlackCore
return this->getModels().size();
}
QList<int> CModelDataReader::getModelDbKeys() const
QSet<int> CModelDataReader::getModelDbKeys() const
{
return this->getModels().toDbKeyList();
return this->getModels().toDbKeySet();
}
QStringList CModelDataReader::getModelStringList() const

View File

@@ -105,7 +105,7 @@ namespace BlackCore
//! Get model keys
//! \threadsafe
QList<int> getModelDbKeys() const;
QSet<int> getModelDbKeys() const;
//! Get model keys
//! \threadsafe

View File

@@ -407,10 +407,10 @@ namespace BlackCore
return 0;
}
QList<int> CWebDataServices::getModelDbKeys() const
QSet<int> CWebDataServices::getModelDbKeys() const
{
if (m_modelDataReader) { return m_modelDataReader->getModelDbKeys(); }
return QList<int>();
return QSet<int>();
}
QStringList CWebDataServices::getModelStrings() const

View File

@@ -41,6 +41,7 @@
#include <QDateTime>
#include <QList>
#include <QSet>
#include <QObject>
#include <QString>
#include <QStringList>
@@ -205,7 +206,7 @@ namespace BlackCore
//! Model keys
//! \threadsafe
QList<int> getModelDbKeys() const;
QSet<int> getModelDbKeys() const;
//! Model strings
//! \threadsafe