Restore mose position widget draft
authorJohn Abraham <john.abraham.in@gmail.com>
Sat, 11 Jan 2014 10:11:29 -0800
changeset 191 25c11b0d7998
parent 190 f3391175ffd0
child 192 3db9f760efd8
Restore mose position widget
animator_step.svg
animatorscene.cpp
qrc_qtpropertybrowser.cpp
qrc_resources.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/animator_step.svg	Sat Jan 11 10:11:29 2014 -0800
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="744.09448819"
+   height="1052.3622047"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.2 r9819"
+   sodipodi:docname="animator_fastfwd.svg">
+  <defs
+     id="defs4" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.50267865"
+     inkscape:cx="372.04724"
+     inkscape:cy="526.18109"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1099"
+     inkscape:window-height="747"
+     inkscape:window-x="52"
+     inkscape:window-y="0"
+     inkscape:window-maximized="0" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <path
+       style="fill:#7a0000;fill-opacity:1;stroke:#000000;stroke-width:1.27638841px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m 27.091322,857.53898 361.026488,-362.17107 0,0 -355.472227,-278.59313 0,0 94.422307,-4.64324 0,0 361.02652,287.87959 0,0 -363.80365,357.52785 0,0 z"
+       id="path2985"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:#c30000;fill-opacity:1;stroke:#000000;stroke-width:1.09707654px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 153.42906,159.88717 564.09557,494.47359 168.319,889.81817 259.9294,890.9104 655.82404,491.27778 263.19623,167.20112 z"
+       id="path3986"
+       inkscape:connector-curvature="0" />
+  </g>
+</svg>
--- a/animatorscene.cpp	Sat Jan 11 07:34:25 2014 -0800
+++ b/animatorscene.cpp	Sat Jan 11 10:11:29 2014 -0800
@@ -288,7 +288,7 @@
 AnimatorScene::setMousePositionLabel (QPointF pos)
 {
 
-  QString string = "    (" + QString::number (qRound (pos.x ())) + "," + QString::number (sceneRect ().height ()-qRound (pos.y ())) + ")";
+  QString string = "    (" + QString::number (qRound (pos.x ())) + "," + QString::number (qRound (pos.y ())) + ")";
   m_mousePositionLabel->setText (string);
   m_mousePositionProxyWidget->setPos (pos.x (), pos.y ());
   m_mousePositionLabel->adjustSize ();
@@ -381,7 +381,7 @@
       {
         QString text = QString::number (qRound (x))
                        + ","
-                       + QString::number ( sceneRect ().height ()-qRound (y));
+                       + QString::number (qRound (y));
         m_gridCoordinates[i]->setText (text);
         m_gridCoordinates[i]->setPos (QPointF (x, y));
         m_gridCoordinates[i]->setVisible (m_showGrid);
--- a/qrc_qtpropertybrowser.cpp	Sat Jan 11 07:34:25 2014 -0800
+++ b/qrc_qtpropertybrowser.cpp	Sat Jan 11 10:11:29 2014 -0800
@@ -1,7 +1,7 @@
 /****************************************************************************
 ** Resource object code
 **
-** Created: Thu Jan 9 08:58:09 2014
+** Created: Sat Jan 11 10:08:15 2014
 **      by: The Resource Compiler for Qt version 4.8.1
 **
 ** WARNING! All changes made in this file will be lost!
--- a/qrc_resources.cpp	Sat Jan 11 07:34:25 2014 -0800
+++ b/qrc_resources.cpp	Sat Jan 11 10:11:29 2014 -0800
@@ -1,7 +1,7 @@
 /****************************************************************************
 ** Resource object code
 **
-** Created: Fri Jan 10 21:37:27 2014
+** Created: Sat Jan 11 10:08:14 2014
 **      by: The Resource Compiler for Qt version 4.8.1
 **
 ** WARNING! All changes made in this file will be lost!