mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Distributor value object improvements
This commit is contained in:
committed by
Mat Sutcliffe
parent
09d86aceb5
commit
12403700ea
@@ -75,10 +75,10 @@ namespace BlackMisc
|
||||
const QString &getAlias2() const { return m_alias2;}
|
||||
|
||||
//! Set alias1
|
||||
void setAlias1(const QString &alias) { m_alias1 = alias.trimmed().toUpper(); }
|
||||
void setAlias1(const QString &alias) { m_alias1 = alias; }
|
||||
|
||||
//! Set alias2
|
||||
void setAlias2(const QString &alias) { m_alias2 = alias.trimmed().toUpper(); }
|
||||
void setAlias2(const QString &alias) { m_alias2 = alias; }
|
||||
|
||||
//! Alias 1?
|
||||
bool hasAlias1() const { return !m_alias1.isEmpty(); }
|
||||
@@ -107,7 +107,7 @@ namespace BlackMisc
|
||||
//! \copydoc BlackMisc::Mixin::Index::setPropertyByIndex
|
||||
void setPropertyByIndex(const BlackMisc::CPropertyIndex &index, const CVariant &variant);
|
||||
|
||||
//! Compare for index
|
||||
//! \copydoc Mixin::Index::comparePropertyByIndex
|
||||
int comparePropertyByIndex(const CPropertyIndex &index, const CDistributor &compareValue) const;
|
||||
|
||||
//! \copydoc BlackMisc::Mixin::String::toQString
|
||||
@@ -143,6 +143,9 @@ namespace BlackMisc
|
||||
QString m_alias2; //!< alias name
|
||||
BlackMisc::Simulation::CSimulatorInfo m_simulator; //!< simulator
|
||||
|
||||
//! "Clean up" the keys, like X-CSL => XCSL
|
||||
static QString unifyKeyOrAlias(const QString &value);
|
||||
|
||||
BLACK_METACLASS(
|
||||
CDistributor,
|
||||
BLACK_METAMEMBER(dbKey, 0, CaseInsensitiveComparison),
|
||||
|
||||
Reference in New Issue
Block a user