mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
comparing just on name, used with plugin checks
This commit is contained in:
@@ -33,6 +33,12 @@ namespace BlackSim
|
||||
this->m_simsetup = setup;
|
||||
}
|
||||
|
||||
bool CSimulatorInfo::isSameSimulator(const CSimulatorInfo &otherSimulator) const
|
||||
{
|
||||
return this->getFullName() == otherSimulator.getFullName() &&
|
||||
this->getShortName() == otherSimulator.getShortName();
|
||||
}
|
||||
|
||||
QString CSimulatorInfo::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
|
||||
@@ -46,6 +46,9 @@ namespace BlackSim
|
||||
//! Short name
|
||||
const QString &getFullName() const { return m_fullName; }
|
||||
|
||||
//! Compare on names only, ignore setup
|
||||
bool isSameSimulator(const CSimulatorInfo &otherSimulator) const;
|
||||
|
||||
//! \copydoc CValueObject::toJson
|
||||
virtual QJsonObject toJson() const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user