mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
refs #768, return DB keys as set
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace BlackCore
|
||||
|
||||
//! Get model keys
|
||||
//! \threadsafe
|
||||
QList<int> getModelDbKeys() const;
|
||||
QSet<int> getModelDbKeys() const;
|
||||
|
||||
//! Get model keys
|
||||
//! \threadsafe
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user