void AMeterWidget::drawScale()
{
QPainter *paint;
+ QString str;
qreal cx, cy, rx, ry, dx, dy;
qreal r, a;
qreal id = 1.0 / divisions;
{
paint->drawEllipse(QPointF(cx, cy), rx * i, ry * i);
}
+
paint->setPen(QPen(QBrush(QColor(64, 64, 64, 255)), 1));
for (j = 0; j < divisions; j++)
{
paint->drawEllipse(QPointF(cx, cy), rx * (i + id * j), ry * (i + id * j));
}
+ if (i != 0) {
+ str = QString::number(i) + "g";
+ paint->setPen(QPen(QBrush(QColor(192, 192, 192, 255)), 1));
+ paint->drawText(QPointF(cx - rx * i, cy), str);
+ paint->drawText(QPointF(cx + rx * i, cy), str);
+ paint->drawText(QPointF(cx, cy - ry * i), str);
+ paint->drawText(QPointF(cx, cy + ry * i), str);
+ }
}
for (i = 0; i < 360; i += angle_step)
+ameter (1.0.3) unstable; urgency=low
+
+ * Added numbers to gravity scale
+
+ -- Ivan Gorinov <igorinov@gmail.com> Thu, 3 Nov 2011 20:57:53 -0700
+
ameter (1.0.2) unstable; urgency=low
* Stop accelerometer when the screen is locked
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Graphical acceleration indicator
- This application displays a 2D acceleration indicator
+ This application displays a 2-dimentional acceleration indicator
+ with gravity/inclinometer scale, using the phone accelerometer
XB-Maemo-Display-Name: ameter
XB-Maemo-Icon-26:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c