mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
[PQ] added static "parsedFromString"
This commit is contained in:
committed by
Mat Sutcliffe
parent
1642502aae
commit
5bc09ed2c8
@@ -455,6 +455,14 @@ namespace BlackMisc
|
||||
*this = CPqString::parse<PQ>(value, CPqString::SeparatorQtDefault);
|
||||
}
|
||||
|
||||
template<class MU, class PQ>
|
||||
PQ CPhysicalQuantity<MU, PQ>::parsedFromString(const QString &value, CPqString::SeparatorMode mode)
|
||||
{
|
||||
PQ pq;
|
||||
pq.parseFromString(value, mode);
|
||||
return pq;
|
||||
}
|
||||
|
||||
template <class MU, class PQ>
|
||||
CVariant CPhysicalQuantity<MU, PQ>::propertyByIndex(const CPropertyIndex &index) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user