Added POI text field. Some tuning to detail screen item position.
[jspeed] / src / rectangle.cpp
index 2e0705b..00e2115 100644 (file)
@@ -29,6 +29,8 @@ namespace
     {
      {"xpos", true},
      {"ypos", true},
+     {"zpos", true},
+     {"visiblewhen", false},
      {"width", true},
      {"height", true},
      {"color", false}
@@ -58,6 +60,12 @@ bool Rectangle::setAttribute(QString const& name, QString const& value)
         case YPOS:
             y_ = intVal;
             break;
+        case ZPOS:
+            element_->setZValue(intVal);
+            break;
+        case VISIBLEWHEN:
+            setVisibleWhen(strToVisibleWhen(value));
+            break;
         case WIDTH:
             width_ = intVal;
             break;