[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-workspace/plasma/sreich/qml2-system-monitors] plasma/generic/applets/system-monitor/plotter/pri
From: Shaun Reich <shaun.reich () kdemail ! net>
Date: 2012-02-16 18:12:24
Message-ID: 20120216181224.3C938A60B9 () git ! kde ! org
[Download RAW message or body]
Git commit 58ecb5fade26198de1f726cdd5fbc3a3cd61eabb by Shaun Reich.
Committed on 16/02/2012 at 15:43.
Pushed by sreich into branch 'plasma/sreich/qml2-system-monitors'.
rm dead code
M +0 -10 plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
http://commits.kde.org/kde-workspace/58ecb5fade26198de1f726cdd5fbc3a3cd61eabb
diff --git a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js \
b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js index \
0dec146..4815f59 100644
--- a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
+++ b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
@@ -270,14 +270,10 @@ function drawBarGraph()
context.moveTo(graphPadding, height - graphPadding);
- //HACK we start at 1.
for(var i = 0; i < points.length; ++i) {
debug("length: " + points.length + " i has value: " + i);
debug("x value: " + points[i].x + " y value: " + points[i].scaledY);
- // FIXME: TEXT IS BROKEN, UPSTREAM
- // context.text("POINT" , points[i][0], points[i][1]);
-
var x;
var y;
x = points[i].x;
@@ -286,8 +282,6 @@ function drawBarGraph()
context.rect(x, y, horizSpace, (height - graphPadding) - y);
}
-// context.lineTo(points[points.length - 1].x, height - graphPadding);
- // context.lineTo(0, height - graphPadding);
context.closePath();
var grd = context.createLinearGradient(graphPadding, graphPadding, graphPadding, \
height - graphPadding); @@ -307,14 +301,10 @@ function drawLines()
context.moveTo(graphPadding, height - graphPadding);
- //HACK we start at 1.
for(var i = 0; i < points.length; ++i) {
debug("length: " + points.length + " i has value: " + i);
debug("x value: " + points[i].x + " y value: " + points[i].scaledY);
- // FIXME: TEXT IS BROKEN, UPSTREAM
- // context.text("POINT" , points[i][0], points[i][1]);
-
var x;
var y;
x = points[i].x;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic