~popey/stock-ticker-mobile-app/fix-1288885

« back to all changes in this revision

Viewing changes to Current_charts_page.qml

  • Committer: Robert Steckroth
  • Date: 2013-07-02 15:37:23 UTC
  • Revision ID: robertsteckroth@gmail.com-20130702153723-yfps89fsaqkasg9a
Fix to graph date printing. Update to design.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    Item {
58
58
        visible: currentStocksList.count > 0 ? true : false
59
59
        anchors.fill: parent
 
60
        clip: false
60
61
        ActivityIndicator {
61
62
             anchors.centerIn: parent
62
63
             clip: false
65
66
        Image {
66
67
            id: chartDot
67
68
            visible: false
68
 
            source: "img/dot.png"
 
69
            source: "img/arrowDown.svg"
69
70
            opacity: 0.75
 
71
            sourceSize.height: visible && 20 // Stop the SVG rasterization if the object is not visible. This should be default
 
72
            //sourceSize.width: visible && 20  // Stop the SVG rasterization if the object is not visible. This should be default
70
73
        }
71
74
        Item {
72
75
            height: units.gu(2)
84
87
              y: Graph.graph.options.topPadding
85
88
              height: chartRect.height - dayRangeSlider.height - units.gu(2) // units.gu(2) is for toolbar activatation space (??)
86
89
              visible: false
87
 
              x: chartDot.x+(chartDot.width/2)
 
90
              x: chartDot.x+chartDot.width/2-width
88
91
              opacity: 0.5
89
92
          }
90
93
    }
153
156
                                parseFloat(currentStocksChart.get(chart_index).close).toFixed(2)+"/"+parseFloat(currentStocksChart.get(chart_index).open).toFixed(2),
154
157
                                 " Vol: "+addCommas(currentStocksChart.get(chart_index).volume)].join('  '))
155
158
 
156
 
        chartDot.x = Math.round(info[1]-(chartDot.width/2))+1
157
 
        chartDot.y = Math.round(info[2]-(chartDot.height/2))
 
159
        chartDot.x = Math.round(info[1]-chartDot.width/2+1)
 
160
        chartDot.y = Math.round(info[2]-chartDot.height)-5
158
161
    }
159
162
 
160
163
}