1
by Robert Steckroth
Initial commit of the Stock Ticker app to Launchpad |
1 |
/* Copyright 2013 Robert Edward Steckroth II <RobertSteckroth@gmail.com> Bust0ut, Surgemcgee
|
2 |
||
3 |
* This program is free software; you can redistribute it and/or modify
|
|
4 |
* it under the terms of the GNU Lesser General Public License as published by
|
|
5 |
* the Free Software Foundation; version 3.
|
|
6 |
*
|
|
7 |
* This program is distributed in the hope that it will be useful,
|
|
8 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
9 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
10 |
* GNU Lesser General Public License for more details.
|
|
11 |
*
|
|
12 |
* You should have received a copy of the GNU Lesser General Public License
|
|
13 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
14 |
*/
|
|
15 |
||
16 |
import QtQuick 2.0 |
|
17 |
||
18 |
Canvas { |
|
19 |
id: canvas
|
|
20 |
antialiasing: true |
|
38
by Robert Steckroth
Fixed graph line placement. |
21 |
//renderTarget: Canvas.FramebufferObject
|
22 |
//renderStrategy: Canvas.Immediate
|
|
1
by Robert Steckroth
Initial commit of the Stock Ticker app to Launchpad |
23 |
anchors.fill: parent |
42
by Robert Steckroth
Fix to device scaling bugs. Tweeked graph scripts a bit. Try for device Canvas rendering bug fix. |
24 |
onAvailableChanged: available && createCanvas() |
24
by Robert Steckroth
Added Ubuntu SDK listItems to main view. Fixed some todo's |
25 |
onWidthChanged: { wipeCanvas(); onPaintCanvas.start(); log("Canvas onWidthChanged"); } |
26 |
onHeightChanged: { wipeCanvas(); onPaintCanvas.start(); log("Canvas onHeightChanged"); } |
|
27 |
onPaint: log("onPaint"); |
|
1
by Robert Steckroth
Initial commit of the Stock Ticker app to Launchpad |
28 |
onPainted: { } |
29 |
}
|
|
30 |
||
31 |
||
32 |
||
33 |
||
34 |