This commit is contained in:
2017-03-20 14:45:49 +01:00
3 changed files with 10 additions and 15 deletions

View File

@@ -29,7 +29,7 @@ public:
virtual Param getParamDesc(const int idx) const override {
switch(idx) {
case 0: return Param("id", ParamType::INT);
case 1: return Param("position", ParamType::POINT2);
case 1: return Param("position", ParamType::POINT3);
}
throw 1;
}
@@ -45,7 +45,7 @@ public:
virtual void setParamValue(const int idx, const ParamValue& val) const override {
switch(idx) {
case 0: gtp->id = val.toInt(); break;
case 1: gtp->pos = val.toPoint2(); break;
case 1: gtp->pos = val.toPoint3(); break;
}
}