Added zpos attribute to all elements. Changed architecture to allow detailscreen...
[jspeed] / src / pointer.cpp
index b48412e..34e6b8d 100644 (file)
@@ -31,6 +31,7 @@ namespace
     {
      {"xpos", true},
      {"ypos", true},
+     {"zpos", true},
      {"src", false},
      {"zeroangle", true},
      {"fullangle", true},
@@ -84,6 +85,9 @@ bool Pointer::setAttribute(QString const& name, QString const& value)
         case YPOS:
             y_ = intVal;
             break;
+        case ZPOS:
+            element_->setZValue(intVal);
+            break;
         case SRC:
             return loadImage(value);
             break;