Sensors now work over broadcast pipe
Added Polynomal actor Added Item adding dialog Added Factor Actor
This commit is contained in:
parent
f6aaebafc6
commit
772d21a982
63 changed files with 1450 additions and 225 deletions
|
|
@ -59,9 +59,9 @@ void SensorActor::store(QJsonObject& json)
|
|||
json["SensorName"] = sensor_.name;
|
||||
}
|
||||
|
||||
void SensorActor::load(const QJsonObject& json)
|
||||
void SensorActor::load(const QJsonObject& json, bool preserve)
|
||||
{
|
||||
Actor::load(json);
|
||||
Actor::load(json, preserve);
|
||||
sloap_ = json["Sloap"].toInt(0);
|
||||
threshold_ = json["Threshold"].toDouble(0);
|
||||
sensor_.type = json["SensorType"].toInt(0);
|
||||
|
|
@ -70,9 +70,9 @@ void SensorActor::load(const QJsonObject& json)
|
|||
sensor_.name = json["SensorName"].toString("Sensor");
|
||||
}
|
||||
|
||||
QString SensorActor::getName()
|
||||
QString SensorActor::getName() const
|
||||
{
|
||||
if(name.size() > 0) return name;
|
||||
if(name_.size() > 0) return name_;
|
||||
else
|
||||
{
|
||||
QString string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue