mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +08:00
Ref T237, using EntitySet = QSet<CEntityFlags::Entity>
This commit is contained in:
@@ -167,7 +167,7 @@ namespace BlackMisc
|
|||||||
return NoEntity;
|
return NoEntity;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSet<CEntityFlags::Entity> CEntityFlags::asSingleEntities(Entity entities)
|
CEntityFlags::EntitySet CEntityFlags::asSingleEntities(Entity entities)
|
||||||
{
|
{
|
||||||
QSet<CEntityFlags::Entity> s;
|
QSet<CEntityFlags::Entity> s;
|
||||||
CEntityFlags::Entity currentEntity = iterateDbEntities(entities);
|
CEntityFlags::Entity currentEntity = iterateDbEntities(entities);
|
||||||
|
|||||||
@@ -57,6 +57,9 @@ namespace BlackMisc
|
|||||||
};
|
};
|
||||||
Q_DECLARE_FLAGS(Entity, EntityFlag)
|
Q_DECLARE_FLAGS(Entity, EntityFlag)
|
||||||
|
|
||||||
|
//! Set of CEntityFlags::Entity
|
||||||
|
using EntitySet = QSet<CEntityFlags::Entity>;
|
||||||
|
|
||||||
//! State of operation
|
//! State of operation
|
||||||
enum ReadState
|
enum ReadState
|
||||||
{
|
{
|
||||||
@@ -107,7 +110,7 @@ namespace BlackMisc
|
|||||||
static Entity singleEntityByName(const QString &name);
|
static Entity singleEntityByName(const QString &name);
|
||||||
|
|
||||||
//! As set of single entities
|
//! As set of single entities
|
||||||
static QSet<Entity> asSingleEntities(Entity entities);
|
static EntitySet asSingleEntities(Entity entities);
|
||||||
|
|
||||||
//! Register metadata
|
//! Register metadata
|
||||||
static void registerMetadata();
|
static void registerMetadata();
|
||||||
|
|||||||
Reference in New Issue
Block a user